设置/定义扩展配置(如果不想使用vscode'默认设置/配置)使用package.json

发布于 2025-01-24 16:54:34 字数 148 浏览 4 评论 0原文

是否可以使用package.json文件 设置任何扩展名的配置或设置,而无需转到preverence-> settings->扩展名,而是对该特定扩展程序进行更改。如果可以通过package.json文件进行自动化并完成,那将是很棒的。

Is it possible to set the configurations or settings of any extension using package.json file without having to go to Preferences->Settings->Extensions and making the changes in configuration for that particular extension. It would be great if this can be automated and done through package.json file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

感性不性感 2025-01-31 16:54:34

我找到了上述查询的两个解决方案:

  1. 最实用和逻辑的解决方案是使用“ ConfigurationDefaults贡献点”来覆盖Visual Studio Code设置的扩展的默认配置。请参阅 configuration defaults Override
  2. 第二个解决方案是访问该特定扩展程序的json文件,通过转到主目录中的.vscode文件夹(此选项对磁盘进行了永久更改)。

I have found two solutions to the above mentioned query:

  1. The most practical and logical solution is to use "configurationDefaults contribution point" to override the default configuration of extensions set by Visual Studio Code. Please refer to configuration defaults override.
  2. The second solution is to access package.json file of that particular extension by going to .vscode folder in your home directory (this option makes permanent changes on the disk).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文