Using VSCode is there a way to configure the Go to Symbol in Workspace tool (default ctrl+T) to exclude external directories?
In my Angular workspace, VS Code is currently listing symbols in node_modules, program files and other directories I am not interested in searching.
Researching around the internet I various posts recommended trying the following settings, but setting these did not impact Go to Symbols.
.vscode\settings.json
"files.exclude": {
"**/node_modules": true,
"**/obj": true,
"*.d.ts": true
},
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
"*.d.ts": true
},
\jsconfig.json
"compilerOptions": {
"target": "ES6",
"lib": []
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
Try this:
**/node_modules
**/node_modules/*/**
I hope this is what you are looking for (which works for me)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With