Choose folders to be ignored during search in VS Code

前端 未结 16 1075
既然无缘
既然无缘 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:29

    This answer is outdated

    If these are folders you want to ignore in a certain workspace, you can go to:

    AppMenu > Preferences > Workspace Settings

    Otherwise, if you want these folders to be ignored in all your workspaces, go to:

    AppMenu > Preferences > User Settings

    and add the following to your configuration:

    //-------- Search configuration --------
    
    // The folders to exclude when doing a full text search in the workspace.
    "search.excludeFolders": [
        ".git",
        "node_modules",
        "bower_components",
        "path/to/other/folder/to/exclude"
    ],
    

    The difference between workspace and user settings is explained in the customization docs

提交回复
热议问题