Visual Studio Code: different color themes for dif

2020-02-15 03:07发布

问题:

I have 2 Visual Studio Code instances with two different projects.

Is there a way to make VS Code instances' themes different from each other depending on the project?

回答1:

// Specifies the color theme used in the workbench.

"workbench.colorTheme": "...……….",

If you put that into your "WORKSPACE SETTINGS" and not "USER SETTINGS" then you will get different themes for each workspace. When you open your setting Ctrl-, (that's a comma), then above the right-hand editor you will see "USER SETTINGS" and "WORKSPACE SETTINGS", chose the workspace settings and then click on the pencil icon to the left of the workbench.colortheme setting to change it.


If you don't want to change your whole theme just to quickly differentiate workspaces, try some combo of these settings in your WORKSPACE SETTINGS:

"workbench.colorCustomizations": {

  "activityBar.background": "#f00", 
  "titleBar.activeBackground": "#f00",
  "statusBar.background": "#f00"
}


回答2:

You can use a great VS Code extension called Peacock developed by John Papa.