“查找所有引用”搜索需要很长时间。
当搜索完成后,我发现VSCode在我的虚拟环境.venv和.venvlinux中搜索了引用,尽管我已将其列在“文件:排除”和“文件:监视器排除”设置中。
我的 json.settings 文件看起来像这样
如何停止VSCode在我的虚拟环境中搜索引用?
![在此输入图片描述](https://istack.dev59.com/9MMsW.webp)
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/.venv": true,
"**/.venvlinux": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
"**/.venv/**": true,
"**/.venvlinux/**": true
},
}
如何停止VSCode在我的虚拟环境中搜索引用?
"**/.venvlinux/**"
替换为"**/.venvlinux/"
吗? - Abhinav Mathur