How to make VSCode Intellisense ignore certain folders but still have them appear in the Explorer window

Viewed 130

I have a large C project which contains generated files among the source code. These will have names like g_*.c or be in directories named "out". I would like to have these generated files excluded from Intellisense, to speed up jump-to-definition. I have tried adding them to files.exclude:

"files.exclude": {
    "**/g_*": true,
    "**/out": true
}

However, this not only excludes them from Intellisense, but also removes them from the explorer window, so I cannot browse the files. Is there a way to exclude the files from Intellisense, but still make them appear in the Explorer window so that they are browsable?

0 Answers
Related