防止工作区默认设置在VS代码中覆盖手动输入的用户设置
如果总是有工作区设置,我该如何使用VS代码中的用户设置?
我正在使用一个项目目录。我正在使用VS代码工作,但是其他团队成员使用不同的IDE与目录一起使用。因此,我们不允许添加任何特定于IDE的文件夹(例如.vscode
文件夹)。这实际上意味着该项目没有VS代码工作区设置。但是,每当我进入设置时,我仍然可以看到工作区选项卡。
我尝试更新用户中的prettier.tabwidth
属性为4
,而在工作空间中,它是2
,而仍然是VS代码使用该值工作空间即使没有工作空间文件,该值仅仅是默认值。而且我无法更改工作区设置,从那以后,工作区设置文件将添加到项目中。
因此,基本上,默认工作区设置覆盖了手动放置用户设置。这实际上令人沮丧,因为它使用户设置毫无用处。
例如,我有什么办法可以将prettier.tabwidth
设置为 4 而无需将工作区设置文件添加到项目中?
How could I use User settings inside VS Code if there are always Workspace settings?
I am working with a project directory. I am working using VS Code, but other team members use different IDEs to work with the directory. So, we are not allowed to add any IDE specific folders (e.g. the .vscode
folder). That means in reality the project has no VS Code Workspace settings. But whenever I go to the Settings I still can see that Workspace tab.
I tried to update the prettier.tabWidth
property in User to be 4
, while in Workspace it is 2
and still VS Code uses the value from Workspace even though there are no Workspace files and the value is merely default. And I can not change the Workspace settings, since then the Workspace settings file will get added to the project.
So, basically the default Workspace settings override the manually put User settings. That is depressing actually since it makes User settings useless.
E.g. is there any way for me to set the prettier.tabWidth
to 4
without adding Workspace settings files to the project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论