VSCode title-bar colors
Posted on 2022-09-03 15:02:00
by rainbyte
Today's objective is to highlight different projects folders in VSCode by changing the window title-bars with specific colors. It will be similar to the Peacock extension but without any dependencies.
VSCode allows some UI customization via .json
settings, there are 2 commands to access config files:
- Open User Settings (JSON)
- Open Workspace Settings (JSON)
In this case the Workspace command is preferred, given that it affects only the current folder opened in VSCode.
Configuration steps
-
Open project folder with VSCode
-
Launch command palette (press
ctrl+shift+p
) -
Enter Open Workspace Settings (JSON) command
-
To set the custom title-bar color add a code similar to this:
{ "workbench.colorCustomizations": { "titleBar.activeBackground": "#0f0", "titleBar.activeForeground": "#000", "titleBar.inactiveBackground": "#0f09", "titleBar.inactiveForeground": "#0009" } }
Note: the numbers can be changed to select other colors
Have fun! Happy hacking
🐱
Comments are not open for this post yet.