I have an IntelliJ project that includes a directory of some huge files. Since those files were added to the project, we've noticed a degradation in performance such as momentary freezes and general sluggishness. Marking the directory as excluded (context menu -> Mark Directory As -> Excluded) seems to help the problem. However, this option is never persisted across sessions, so that when I reopen IntelliJ and open the project the folder is not marked as excluded. How can I permanently mark this directory as excluded?
Running IntelliJ IDEA 13.1.4 on Mac OS X 10.9.4.
You can also just right click on your folder and select Mark Directory As > Excluded . Excluded folders (shown as rootExcluded) are ones that IntelliJ IDEA "partially ignores".
I am using IntelliJ IDEA 2020.1.4 and Bazel build and was trying to exclude .bazel-cache
directory so that it does not pop-up in search. Unfortunately, neither osundblad
's nor cobbzilla
's answer resulted in permanently hiding that directory.
What helped instead:
File -> Settings -> Editor -> File Types -> Ignore files and folders
and added .bazel-cache
separated with ;
.
To expand on osundblad's answer, this now works fine in more recent versions of IntelliJ:
Open Module Settings
in the context menu, click that.Sources
, Paths
, and Dependencies
Sources
tab, at the bottom of the file-tree control, find the text box labeled Exclude Files
foo
and bar/baz
that you wanted to exclude: enter foo*;bar/baz*;
apply/OK the changes, and they will be permanently excluded from the project.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