Intellij IDEA. Hide .iml files
54,449
Solution 1
Check “Ignored files and folders” in File Types settings:
File | Settings | Editor | File Types for Windows and Linux
IntelliJ IDEA | Preferences | Editor | File Types for OS X
Then add *.iml;*.idea; in the text box in the bottom:
Solution 2
For Intellij IDEA 13 on OS X 10.9, do this:
- Go to
Intellij IDEA > Preferences. - Scroll down to the
IDE Settingssection, go toFile Types. - Add
*.imland.ideato theIgnore files and folderslist box at the bottom of this window.
The project navigator will be much cleaner!
I hope it helps!
Solution 3
- Go to
File->Settings->File Types - Append
*.imlto the list below "Ignore files and folders" (located at the bottom of the dialog)
Solution 4
IntelliJ 14 and 15 on Mac OS X (they've changed the hierarchy again in 14):
- Go to
IntelliJ IDEA->Preferences->Editor->File Types - Append
*.imlto the list below "Ignore files and folders" (located at the bottom of the dialog)
Solution 5
For IntelliJ 14 on Windows, go to File->Settings->Editor->File Types. At the bottom, append ;.idea;*.iml.
Author by
WelcomeTo
Updated on September 18, 2020Comments
-
WelcomeTo over 2 yearsI use Intellij IDEA 12 and I want to hide
.imlfiles in Project view. How I can achieve this? -
Dennis Laumen over 9 yearsFor Mac OS X, one should go toIntelliJ IDEA->Preferences->File Types. The rest of the instructions are valid for Mac OS X as well. -
Bohdan Yurov almost 9 yearsThat does not work as *iml is reserved for Idea Module
-
zeratul021 about 7 years@nick4fake just FYI - adding patterns there worked for me in 14.1.5 -
koppor over 6 yearsAlso applies for IntelliJ 2016 -
tsar2512 about 6 yearsThis does not seem to work for mac intelliJ 14, it does not hide files in the project view, I can still see them. I have some special .*.expl files that I would like to hide -
Charles about 6 yearsI tried to ignore .class file using this method. Bad idea, Intellij even ignores .class files from jar libs... -
sbk over 5 yearsThanks, works on IntelliJ IDEA 2017.1.1 Mac OS X 10.11.1
-
Advicer over 5 yearsSeems not to be working on Intellij IDEA 2017.1.3 Trial version on Windows 10.
-
EminezArtus almost 5 yearsMake sure you use a Semicolon not a Comma or else it will not work.
-
Hariprasath over 4 yearsIs this setting will block to add into git? -
T.S almost 4 yearsWorks great when wanting to filter .bak files as well. And you can always add the file to git manually by using the command prompt (git add -f "filename"), or smartgit. -
mallaudin about 3 yearsMake sure to add ; as separator. -
Werner Henze over 2 yearsIt looks like the accepted answer said the same 7 years ago. So what value does your answer add? -
Robert Christ over 1 yearThis answer is copied across the internet, but no longer exists in IntelliJ 2021.1.3, and I have so far been unable to find an alternative.
