A simple tool that changes your VS Code's Title Bar Colors depending on the type of workspace that you're currently in. Useful for Full-Stack developers who like to jump from workspace to workspace.
- Open your terminal and
cd
into your root directory (e.g.cd ~
, or cd/Users/YOURNAME/
) - Create a new folder named
bin
if you don't have one yet - Export your bin directory to the PATH (e.g. for bash:
export PATH=$PATH:/Users/YOURNAME/bin
, for ZSH:export PATH=$HOME/bin:/usr/local/bin:$PATH
) - Copy the two files
vs-fe
andvs-be
into your bin directory - Give executable persmissions to both files (
chmod u+x vs-fe vs-be
) - Now in VSCode, open your settings (
Ctrl + ,
orCmd + ,
) and in the search box, type "title" - Uncheck the box for "Window: Native Tabs" if you have one
- Set "Window Titlebar Style" to "Custom".
- Restart VSCode
- Setup is done.
cd
into your selected workspace- Run
vs-fe
for your Front-End workspace, and runvs-be
for your Back-End workspace - Watch them title bars color change
- This might not be as useful on monolithic sites (Wordpress, Drupal, etc), but you can still try it, but I imagine the setup's gonna be a tad more difficult. I don't know, I didn't try.
- You can also use and modify these to customize your workspaces. For example, if you want to create separate settings for a Wordpress workspace, you can create a
vs-wordpress
executable and modify the colors as you see fit.