如何停止VSCode搜索我的虚拟环境中的引用?

8
“查找所有引用”搜索需要很长时间。 在此输入图片描述 当搜索完成后,我发现VSCode在我的虚拟环境.venv和.venvlinux中搜索了引用,尽管我已将其列在“文件:排除”和“文件:监视器排除”设置中。

enter image description here

enter image description here

我的 json.settings 文件看起来像这样
{
    "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
2个回答

2

0

我曾经遇到过同样的问题。我不得不将模式添加到我的Search.exclude设置中,而不是Files.exclude设置中。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接