Visual Studio Code 和特定于子文件夹的设置 [英] Visual Studio Code and subfolder-specific settings
问题描述
我的工作区根是一个 git 存储库,其中包含几个文件和几个 git 子模块.每个子模块都有自己的 .vscode/settings.json
.我期待 VSCode 根据我正在工作的子模块/子文件夹调整其设置,但它没有按预期工作.
有可能吗?我认为如果您使用多根工作区(自 1.18 起支持),这是可能的,但就我而言,我想保留该单根工作区.
在撰写本文时,该功能尚未实现.2017 年 8 月 17 日提交的程序问题跟踪器中有一个功能请求:单体结构,多个项目设置#32693.
与此同时,如果您非常需要它,则必须按照 Diogo 的答案 中所述滥用多根工作区.>
My workspace root is a git repository containing couple of files and several git submodules. Each submodule have their own .vscode/settings.json
. I was expecting VSCode to adjust its settings based on which submodule/subfolder I'm working in but it's not working as expected.
Is it possible? I think it's possible if you use a multi-root workspace (which is supported since 1.18), but in my case I'd like to keep that single-root workspace.
At the time of writing the feature is just not implemented. There's a feature request in the program's issue tracker filed on 17 August 2017: Monolithic structure, multiple project settings #32693.
Meanwhile, if you need it badly you have to abuse multi-root workspaces as described in Diogo's answer.
这篇关于Visual Studio Code 和特定于子文件夹的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!