Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set different color schemes with multiuple vscode windows open

I have two windows open for debugging. One is for my service and the other is for my workbench. They are two different repos so I want them on two different instances of VSCode. I also want to have them be different color schemes. When I change the color scheme in one instance it applies to the other. Is there a way around this? Is there a way to have multiple windows be different color schemes in vscode?

like image 559
Cole Gillespie Avatar asked Sep 07 '17 13:09

Cole Gillespie


People also ask

How do I manage multiple VS Code Windows?

Ctrl + Shift + N will open a new window, while Ctrl + K then releases the keys, and pressing O would open the current tab in a new window. You can then use menu File → Open Folder to have two instances of Visual Studio Code with different folders in each window. ⌘ + Shift + N and ⌘ + K for Mac.

How do I open multiple instances of VS Code?

If you are using Windows, just hit Ctrl + Shift + N. If you are on a Mac, just press Command + Shift + N.


1 Answers

You can configure the different title-bar color using .vscode/settings.json. (For configuring different color themes, I don't know yet.)

{
  "workbench.colorCustomizations": {
    "activityBar.background": "#5D0D15",
    "titleBar.activeBackground": "#82131D",
    "titleBar.activeForeground": "#FEFBFB"
  }
}

But, you can easily use the plugin called Window Colors which automatically generate .vscode/settings.json based-on the directory name like hash.

Actually I hope that the color will be better, but nowadays it can be very handy solution.

https://marketplace.visualstudio.com/items?itemName=stuart.unique-window-colors

img

like image 141
tkhwang Avatar answered Sep 18 '22 15:09

tkhwang