viralrf
viralrf

Reputation: 133

How to change the color of the terminal when is focused

Is there a way to change the color of the integrated terminal (windows cmd) when its focused/active?

i use ctrl+l to change between the terminal and the working space but sometimes i have problems telling what area is active

{
    "key": "ctrl+l", 
    "command": "workbench.action.terminal.focus",
    "when": "!terminalFocus" 
},
{
    "key": "ctrl+l", 
    "command": "workbench.action.focusActiveEditorGroup",
    "when": "terminalFocus" 
}

Upvotes: 7

Views: 3371

Answers (2)

Alex
Alex

Reputation: 67513

Extension Custom CSS and JS Loader.

.terminal {
    border-left: 5px solid #41A6D9;
    opacity: 1;
}
.terminal:not(.focus) {
    border-color: transparent;
    opacity: 0.5;
}

Upvotes: 4

Mark
Mark

Reputation: 180685

Hopefully there is something better than this but you could try setting your terminal cursor to an obvious color such as red:

"workbench.colorCustomizations": {

    //"terminal.background": "#567",
    //"terminal.foreground": "#fff",
    "terminalCursor.foreground": "#f00"
}

And then you'll see the terminal cursor change significantly when the terminal gets or loses focus.

Upvotes: 8

Related Questions