当聚焦/活动时,有没有办法改变集成终端(windows cmd)的颜色?
我使用ctrl + l在终端和工作空间之间进行切换但有时我在确定哪个区域处于活动状态时遇到问题
{
"key": "ctrl+l",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
}
答案 0 :(得分:4)
希望有比这更好的东西,但你可以尝试将终端光标设置为明显的颜色,如红色:
"workbench.colorCustomizations": {
//"terminal.background": "#567",
//"terminal.foreground": "#fff",
"terminalCursor.foreground": "#f00"
}
然后,当终端获得或失去焦点时,您会看到终端光标发生显着变化。
答案 1 :(得分:2)
.terminal {
border-left: 5px solid #41A6D9;
opacity: 1;
}
.terminal:not(.focus) {
border-color: transparent;
opacity: 0.5;
}