简体   繁体   English

具有不同设置的Visual Studio代码

[英]Visual Studio Code with different settings

Is it possible to pass settings.json file to Visual Studio Code? 是否可以将settings.json文件传递给Visual Studio Code? I need to use different settings depending on the project I am working on. 我需要根据正在处理的项目使用不同的设置。 I do for example need to use nodejs from the Ubuntu subsystem sometimes and nodejs from Windows sometimes. 例如,我确实有时需要使用来自Ubuntu子系统的nodejs,有时需要使用Windows的nodejs。

It would even be better if I could run two completely different instances so that I also could have different plugins installed. 如果我可以运行两个完全不同的实例,这样我也可以安装不同的插件,那就更好了。 Is that possible? 那可能吗?

You can override or amend settings on a per-project basis. 您可以基于每个项目覆盖或修改设置。 Just add the desired settings to .vscode/settings.json at the root of the project folder. 只需将所需的设置添加到项目文件夹根目录下的.vscode/settings.json中即可。 You can not run different instances with different plugins short of installing the Insiders build aside the Stable one. 除了将Insiders构建安装到Stable之外,您不能使用其他插件运行不同的实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM