Home > database >  Command Palette Search Include All Files
Command Palette Search Include All Files

Time:07-19

I am making use of the files.exclude setting in VSCode, but would still like to be able to search for the file using the Command Palette.

Is there a way to prevent?:

Configure glob patterns for excluding files and folders in fulltext searches and quick open. Inherits all glob patterns from the files.exclude setting.

VSCode Default Settings

Note: I am not talking about the Search tool in the side bar. I am specifically wanting the Command Palette Search functionality to not be affected by the files.exclude setting.

CodePudding user response:

There is a default search.exclude configuration that inherits all files.exclude patterns, and is set to:

"search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/*.code-search": true
},

You can therefore rewrite some patterns for QuickSearch by rewriting this in your local settings.json.

  • Related