This is my configuration in .code-workspace:
"folders": [
{
"path": "."
},
{
"path": "../html/ROOT"
}
],
I'm trying to get all files out of the ROOT folder when I search with ctrl+p (Quick Open). I can't in any way. This is the last attempt:
"files.exclude": {
"**/ROOT/**": true
},
"search.exclude": {
"**/ROOT/**": true
}
I also tried with:
"files.exclude": {
"**/ROOT": true
},
"search.exclude": {
"**/ROOT": true
}
and
"files.exclude": {
"ROOT/**": true
},
"search.exclude": {
"ROOT/**": true
}
without success.
Some idea?
I googled "github vscode issues exclude workspace root from search
" and found the following:
Multi-Root Workspace: Exclude Subfolders
#82145 comment #829347865 shows that the files.exclude
setting can be set in a workspace root's .vscode/settings.json
file.
Cannot exclude root folders while searching
#50638 comment #1554801954 shows that the search.exclude
setting can be set in a workspace root's .vscode/settings.json
file.
So, to achieve what you want, you can put the following in the .vscode/settings.json
of the workspace root folder that you want to exclude from searches:
"search.exclude": {
"**": true,
}
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