Exclude folder / find in path


I'm trying to exclude a build folder from search as per the post here:


I'm following Darek Kays method - but it's not working.

I'm using IntelliJ 2018.

As you can see from the following screenshot files from the build folder continue to be shown despite the fact build is excluded - and marked as so red.



Am I missing something?



1 comment
Comment actions Permalink


There are generated files in "build" directory and they are under "generated sources root" which is not excluded. You could remove it manually in project settings or use custom scope for search.


Please sign in to leave a comment.