Reputation: 5635
Working with VS code's terminal is just fine but somehow (all) text is hardly readable without peeking my nose to the screen. Anybody knows a setting to change this?
EDIT This isn't like this question because that deals with the overall theming of VS Code instead of purely the colors in the terminal window. Although a link in a comment seems to point out that it is no longer possible to style the terminal colors "outside of an applied theme..."?!
Still no luck...
Upvotes: 12
Views: 10002
Reputation: 180695
There is a new setting coming soon, presumably in Stable v1.68. See commit for terminal selection colors.
"workbench.colorCustomizations": {
"terminal.selectionBackground": "#dededc",
"terminal.selectionForeground": "#ff0000" // new in v1.68
}
Upvotes: 4
Reputation: 6023
Here is what I set to make selections look more obvious both in the editor and terminal.
"workbench.colorCustomizations": {
"editor.findMatchHighlightBackground": "#640391",
"editor.findMatchBackground": "#105a1c",
"editor.selectionHighlightBackground": "#201e81",
"terminal.selectionBackground": "#ee0028"
}
Upvotes: 1
Reputation: 746
"terminal.selectionBackground": #ffee7f6e
is the setting used to control the highlight color for the vscode built in terminal. There is no foreground option so you'll need to use a value with some opacity.
Example settings.json
{
"workbench.colorCustomizations": {
"terminal.selectionBackground": "#ffee7f6e"
}
}
Upvotes: 12
Reputation: 23
I had the same problem after updating Windows. I think that the problem is related to Windows PowerShell, because after updating, I changed the terminal to cmd.exe, and the problem went away.
Then I opened PowerShell and changed the settings. I think that my problem has been solved.
seems that changing the settings in cmd also works
Upvotes: 2
Reputation: 5635
Just googled again for this found my own question and (re)tried the solution of @Sharak. Finally found out that the color setting I was looking for is terminal.ansiBrightBlue
although this term looks misleading it is actually what is changing the text background color which I changed into the background color of the (material) theme plugin that I am using. So everything looks clear now :)
Upvotes: 0
Reputation: 989
Use these options inside workbench.colorCustomizations
:
"terminal.foreground": "#ffffff",
"terminal.ansiBlack": "#000000",
"terminal.ansiRed": "#c23621",
"terminal.ansiGreen": "#25bc24",
"terminal.ansiYellow": "#adad27",
"terminal.ansiBlue": "#492ee1",
"terminal.ansiMagenta": "#d338d3",
"terminal.ansiCyan": "#33bbc8",
"terminal.ansiWhite": "#cbcccd",
"terminal.ansiBrightBlack": "#818383",
"terminal.ansiBrightRed": "#fc391f",
"terminal.ansiBrightGreen": "#31e722",
"terminal.ansiBrightYellow": "#eaec23",
"terminal.ansiBrightBlue": "#5833ff",
"terminal.ansiBrightMagenta": "#f935f8",
"terminal.ansiBrightCyan": "#14f0f0",
"terminal.ansiBrightWhite": "#e9ebeb",
HERE is more info about color customization in Visual Studio Code.
You should avoid using any background
settings as they interfere with some theme's background settings for terminal panel (VSCode 1.21.1).
Upvotes: 2