Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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" 
}
like image 781
viralrf Avatar asked Sep 08 '17 20:09

viralrf


2 Answers

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.

like image 193
Mark Avatar answered Dec 20 '22 22:12

Mark


Extension Custom CSS and JS Loader.

.terminal {
    border-left: 5px solid #41A6D9;
    opacity: 1;
}
.terminal:not(.focus) {
    border-color: transparent;
    opacity: 0.5;
}
like image 44
Alex Avatar answered Dec 21 '22 00:12

Alex