VS Code终端(选中)文本背景颜色

时间:2018-02-22 10:37:05

标签: terminal visual-studio-code

使用VS代码的终端很好但不知何故(全部)文本在不偷看屏幕的情况下几乎无法读取。有人知道改变这个的设置吗?

that blue blackground is very annoying

修改 这与this question不同,因为它处理的是VS Code的整体主题,而不是纯粹的终端窗口中的颜色。虽然注释中的链接似乎指出不再可能将“终端颜色”设置为“在应用主题之外......”?!

仍然没有运气......

enter image description here

5 个答案:

答案 0 :(得分:1)

更新Windows后,我遇到了同样的问题。我认为该问题与Windows PowerShell有关,因为更新后,我将终端更改为cmd.exe,问题就消失了。

然后,我打开PowerShell并更改设置。我认为我的问题已经解决。

似乎更改cmd中的设置也可以

答案 1 :(得分:1)

"terminal.selectionBackground": #ffee7f6e是用于控制内置终端的vscode的突出显示颜色的设置。没有前台选项,因此您需要使用具有一定透明度的值。

示例settings.json

{
    "workbench.colorCustomizations": {
        "terminal.selectionBackground": "#ffee7f6e"
    }
}

答案 2 :(得分:0)

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).

答案 3 :(得分:0)

再次谷歌搜索,发现我自己的问题,并(重新)尝试@Sharak的解决方案。终于发现我正在寻找的颜色设置是terminal.ansiBrightBlue虽然这个术语看起来很误导,实际上是什么改变了我改变为我正在使用的(材质)主题插件的背景颜色的文本背景颜色。所以一切看起来都很清楚:)

答案 4 :(得分:0)

这就是我要设置的内容,以便在编辑器和终端中使选择看起来更加明显。

    "workbench.colorCustomizations": {
      "editor.findMatchHighlightBackground": "#640391",
      "editor.findMatchBackground": "#105a1c",
      "editor.selectionHighlightBackground": "#201e81",
      "terminal.selectionBackground": "#ee0028"
    }
相关问题