Skip to content

Instantly share code, notes, and snippets.

@KRTirtho
Created October 17, 2020 16:22
Show Gist options
  • Save KRTirtho/865b9199cef6d3cfb782de3905a86fbd to your computer and use it in GitHub Desktop.
Save KRTirtho/865b9199cef6d3cfb782de3905a86fbd to your computer and use it in GitHub Desktop.
Excluding file watchers & search indexing in unintended folders and files in Visula
//Add following lines of code to exclude the files & folders which aren't important for watchers to look for changes...
{
//exludes fies & folders in search indexing
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/env": true,
"**/venv": true
},
//exludes fies & folders for watcher service
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/env/**": true,
"**/venv/**": true,
"env-*": true
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment