Visual Studio Code:不同项目的不同颜色主题 [英] Visual Studio Code: different color themes for different projects

查看:71
本文介绍了Visual Studio Code:不同项目的不同颜色主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个带有两个不同项目的 Visual Studio Code 实例.

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

有没有办法根据项目使 VS Code 实例的主题彼此不同?

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

推荐答案

//指定工作台中使用的颜色主题.

// Specifies the color theme used in the workbench.

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

如果您将其放入WORKSPACE SETTINGS"而USER SETTINGS",那么您将获得每个工作区的不同主题.当您打开设置 Ctrl-,(这是一个逗号),然后在右侧编辑器上方您将看到用户设置"和工作区设置",选择工作区设置,然后单击 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"
}

这篇关于Visual Studio Code:不同项目的不同颜色主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆