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.
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).
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.
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
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"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With