- Instant help with your Developer coding problems

Exclude folders from search in VS Code

Question:
How to exclude folders from search in VS Code?
Answer:
"search.exclude": {
  "*.bundle.js": true,
  "*.json": true,
  "*.min.js": true,
  "**/dist": true
}
Description:

To make the search in files faster in VS Code and also get more relevant results you may want to ignore some files and/or folders from the search process. You can configure the folders and files in the search panel for the current search by clicking on the ... icon and list all ignored entries - separated by a comma - in the files to exclude field.

You can also define a permanent exclude list in settings. Open the setting panel File -> Preferences -> Settings and type 'exclude' in the search field. Find the Search: Exclude group and use the Add Pattern button to add more files or folders to the default exclude list.

 

Share "How to exclude folders from search in VS Code?"