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:

Hide Files and Folders in Intellij

http://blogs.jetbrains.com/idea/2011/04/intellij-idea-does-not-show-some-files-know-the-hiding-places/

Solution 2

For Intellij IDEA 13 on OS X 10.9, do this:

  • Go to Intellij IDEA > Preferences.
  • Scroll down to the IDE Settings section, go to File Types.
  • Add *.iml and .idea to the Ignore files and folders list 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 *.iml to 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 *.iml to 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.

Share:
54,449
WelcomeTo
Author by

WelcomeTo

Updated on September 18, 2020

Comments

  • WelcomeTo
    WelcomeTo over 2 years

    I use Intellij IDEA 12 and I want to hide .iml files in Project view. How I can achieve this?

  • Dennis Laumen
    Dennis Laumen over 9 years
    For Mac OS X, one should go to IntelliJ IDEA -> Preferences -> File Types. The rest of the instructions are valid for Mac OS X as well.
  • Bohdan Yurov almost 9 years
    That does not work as *iml is reserved for Idea Module
  • zeratul021
    zeratul021 about 7 years
    @nick4fake just FYI - adding patterns there worked for me in 14.1.5
  • koppor
    koppor over 6 years
    Also applies for IntelliJ 2016
  • tsar2512
    tsar2512 about 6 years
    This 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
    Charles about 6 years
    I tried to ignore .class file using this method. Bad idea, Intellij even ignores .class files from jar libs...
  • sbk over 5 years
    Thanks, works on IntelliJ IDEA 2017.1.1 Mac OS X 10.11.1
  • Advicer over 5 years
    Seems not to be working on Intellij IDEA 2017.1.3 Trial version on Windows 10.
  • EminezArtus almost 5 years
    Make sure you use a Semicolon not a Comma or else it will not work.
  • Hariprasath
    Hariprasath over 4 years
    Is this setting will block to add into git?
  • T.S
    T.S almost 4 years
    Works 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
    mallaudin about 3 years
    Make sure to add ; as separator.
  • Werner Henze
    Werner Henze over 2 years
    It looks like the accepted answer said the same 7 years ago. So what value does your answer add?
  • Robert Christ
    Robert Christ over 1 year
    This 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.