Choose folders to be ignored during search in VS Code

前端 未结 16 1033
既然无缘
既然无缘 2020-11-28 18:10

Right now when I use +O to search for files, the fuzzy matching appears to operate over all files in the current project. Unfortunately, this includes

16条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 18:27

    If I understand correctly you want to exclude files from the vscode fuzzy finder. If that is the case, I am guessing the above answers are for older versions of vscode. What worked for me is adding:

    "files.exclude": {
        "**/directory-you-want-to-exclude": true,
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true
    }
    

    to my settings.json. This file can be opened through File>Preferences>Settings

提交回复
热议问题