0
這裏是我的文件夾結構:排除文件,該文件不包含在vscode串
lang
|_ translate_en.js
|_ translate_cs.js
|_ translate_de.js
我要排除除en
文件中的所有文件。
我想是這樣的:
"search.exclude": {
// this hide all the files "lang/translate_*.js": true
"lang/translate_!(en).js": true
// or "lang/translate_*!(en).js": true
}
謝謝!
感謝您的回答!我在該文件夾中有另一個文件'translate_es',不知何故它仍然顯示在搜索結果中。 –
我甚至不知道這個作品)[一些文章](http://maxisam.github.io/2016/12/09/how-to-do-negative-pattern-for-VS-code-files-exclude /)。如果你想出來,隨時編輯我的答案。現在,您可以專門爲es添加另一個規則。 – Alex
「lang/translate_es.js」:true, – Alex