Search code examples
webstormgitignorejetbrains-ide

Automatically exclude ignored directory in WebStorm?


I have a monorepo with a lot of build directories. These are ignored in the .gitignore file but if I analyze the project or open one of the files inside WebStorm still analyzes them and reports tons of errors.

I can prevent this by manually excluding each folder but there's tons of them.

Is there a way to tell WebStorm that any ignored file should also be excluded from analysis?


Solution

  • Currently, if you open .gitignore, there will be a message right at the top offering to exclude everything that is ignored but not excluded yet. It should make it easier to exclude everything that is ignored.