Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode - change highlight color of current file

How can I add a custom style for the background of the opened file (the pale-grey behind fetch.js):

enter image description here

like image 461
Tanasos Avatar asked Oct 23 '18 07:10

Tanasos


People also ask

How do I replace highlighted in VS Code?

The find-and-replace way Alternately, you can add a cursor to all occurrences of the current selection with Command+Shift+L. Then, you just type the replacement, and all instances are updated with each keystroke!


2 Answers

I believe you are looking for the list.inactiveSelectionBackground theme setting. You can set this using workbench.colorCustomizations

"workbench.colorCustomizations": {
    "list.inactiveSelectionBackground": "#f0f"
}

enter image description here

This color used used when the explorer is not focused. Use list.activeSelectionBackground for when the explorer is focused

like image 146
Matt Bierner Avatar answered Oct 21 '22 07:10

Matt Bierner


To highlight the current file tab on top -

Under Settings --> "workbench.colorCustomizations", add some colors to the tab border and/or to the tab background:

"tab.activeBorder": "#ff0000",
"tab.unfocusedActiveBorder": "#000000",
"tab.activeBackground": "#4a4a75",
"tab.unfocusedactiveBackground": "#000000"
like image 1
Noam Manos Avatar answered Oct 21 '22 08:10

Noam Manos