使用VS Code的终端还可以,但由于所有文本都很难读取,所以我必须贴着屏幕看。有人知道设置可以改变这个问题吗?
编辑 这不像这个问题,因为那个问题涉及到VS Code整体主题而不是终端窗口中的颜色。尽管评论中的链接似乎指出,现在不再可能在“应用主题之外…”样式化终端颜色了?!
仍然没有运气...
使用VS Code的终端还可以,但由于所有文本都很难读取,所以我必须贴着屏幕看。有人知道设置可以改变这个问题吗?
编辑 这不像这个问题,因为那个问题涉及到VS Code整体主题而不是终端窗口中的颜色。尽管评论中的链接似乎指出,现在不再可能在“应用主题之外…”样式化终端颜色了?!
仍然没有运气...
"terminal.selectionBackground": #ffee7f6e
是用于控制VSCode内置终端突出显示颜色的设置。由于没有前景选项,因此您需要使用一些透明度的值。
示例 settings.json 文件:
{
"workbench.colorCustomizations": {
"terminal.selectionBackground": "#ffee7f6e"
}
}
很快会推出一个新的设置,预计在稳定版v1.68中推出。请参见终端选择颜色的提交。
"workbench.colorCustomizations": {
"terminal.selectionBackground": "#dededc",
"terminal.selectionForeground": "#ff0000" // new in v1.68
}
#fff
或#ffffff
一起工作。编辑:我的背景太亮了,VS Code决定白色无法清晰可见。 - Abpostman1在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",
这里提供了有关Visual Studio Code中颜色自定义的更多信息。
您应该避免使用任何background
设置,因为它们会干扰某些主题对终端面板的背景设置(VSCode 1.21.1)。
这是我设置的内容,使选择在编辑器和终端中更加明显。
"workbench.colorCustomizations": {
"editor.findMatchHighlightBackground": "#640391",
"editor.findMatchBackground": "#105a1c",
"editor.selectionHighlightBackground": "#201e81",
"terminal.selectionBackground": "#ee0028"
}
刚刚又谷歌了一下,找到了自己的问题并尝试了@Sharak的解决方案。最终发现我要找的颜色设置是terminal.ansiBrightBlue
,尽管这个术语看起来有些误导人,但实际上它改变的是文本背景颜色,我将其更改为了我正在使用的(材料)主题插件的背景颜色。所以现在一切都清晰明了 :)