Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code customize file explorer window color theme

Does anyone know how to customize the file explorer window color theme in VS Code? Also how to customize the color of line numbers?

For example, when using the built-in High Contrast color theme, I can see that the file explorer and line number colors are different. But I can't find a way to customize the colors when using an extension color theme, like the material-theme.

like image 959
user3616544 Avatar asked Apr 29 '16 15:04

user3616544


People also ask

Can I customize Vscode theme?

You can customize your active Visual Studio Code color theme with the workbench. colorCustomizations user setting. Note: If you want to use an existing color theme, see Color Themes where you'll learn how to set the active color theme through the Preferences: Color Theme dropdown (Ctrl+K Ctrl+T).

How do I change folder color in Vscode?

vscode/extensions folder and restart VS Code. Open the Color Theme picker theme with File > Preferences > Color Theme and you can see your theme in the dropdown.


2 Answers

From your settings.json Ctrl+,

"workbench.colorCustomizations": {
    "sideBar.background": "#424d66",
    "list.hoverBackground": "#41a6d9",
}

File explorer uses sidebar and list colors.

Color of line numbers:

"editorLineNumber.foreground": "#41a6d9",
"editorLineNumber.activeForeground": "#ff6a00",

https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors

like image 113
Alex Avatar answered Sep 21 '22 17:09

Alex


enter image description here

assuming you'd like to get a white sidebar and black text in it you need to edit your settings.json like this:

"workbench.colorCustomizations": {
"sideBar.background": "#ffffff",
"sideBar.foreground": "#000000",
"list.hoverForeground": "#ffffff" 
}
like image 41
user374324 Avatar answered Sep 19 '22 17:09

user374324