Reputation: 13
How it should be
How it is
As you can see, one device doesn't support those colors. VSCode version is 1.70.2 on both devices. The one that doesn't work is Windows 7. I guess that might have something to do with it.
Upvotes: 1
Views: 1582
Reputation: 1
Enable ANSI Colors in VS Code Settings Force settings.json support ANSI colors.
Use Command Palette:
Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) to open the Command Palette. Type "Preferences: Open Settings (JSON)" and select it. This will open the settings.json file directly. Using the Settings UI:
You can also manually open it by navigating to:
Windows: C:\Users\<YourUsername>\AppData\Roaming\Code\User\settings.json
macOS: ~/Library/Application Support/Code/User/settings.json
Linux: ~/.config/Code/User/settings.json
Add the following lines to settings.json:
"terminal.integrated.env.windows": { "TERM": "xterm-256color" }, "terminal.integrated.env.linux": { "TERM": "xterm-256color" }
Save the file
Restart VSCode
Test it out!
Upvotes: 0