我设置了一个多根工作区,其中四个文件夹中的两个是外部文件夹,因此无法向该文件夹添加特定设置。我想禁用对这些文件夹的搜索,最好是在工作区设置中。
我找不到合适的模式来完成这项工作:(
以下是我的工作区设置,我正在尝试过滤out文件夹中的文件:
"folders": [
{
"name": "Application"
"path": "./application"
},
{
"name": "Device"
"path": "./device"
},
{
"name": "Out"
"path": "./out"
}],
"settings": {
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the files.exclude setting.
"search.exclude": {
"out": true,
"**/tests": true,
".tags": true
},
答案 0 :(得分:0)
根据https://stackoverflow.com/a/33418660/6225923中的建议,您可以使用工作区设置并添加要排除的文件夹模式,如下所示:
"search.excludeFolders": [
"folder1",
"folder2",
"folder3",
"path/to/other/folder4"
],
此外,请确保搜索排他性仍处于活动状态。