127

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

WelcomeTo
  • 19,843
  • 53
  • 170
  • 286

9 Answers9

231

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/

Sled
  • 18,541
  • 27
  • 119
  • 168
Vytautas Nuobara
  • 2,334
  • 1
  • 13
  • 2
59

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!

rbento
  • 9,919
  • 3
  • 61
  • 61
20
  • Go to File -> Settings -> File Types
  • Append *.iml to the list below "Ignore files and folders" (located at the bottom of the dialog)
Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239
  • 2
    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. – Dennis Laumen Jul 24 '13 at 06:25
14

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)
Geert
  • 3,527
  • 1
  • 20
  • 16
7

For IntelliJ 14 on Windows, go to File->Settings->Editor->File Types. At the bottom, append ;.idea;*.iml.

Jon
  • 1,675
  • 26
  • 57
5

Instead of hiding the files excluding them like folders seemed to be the better way for me.

Go to File > Project Structure... > Settings > Modules

At the bottom is a box where you can enter the file types:

enter image description here

Now you can use the projects "Show Options Menu" to hide and show them:

enter image description here

Neonchen
  • 141
  • 1
  • 6
  • This is what I would have answered if the question was how to hide a build folder. For those who are looking for this option, you should [right click on the folder > Mark Directory as > Excluded](https://www.jetbrains.com/help/objc/controlling-source-library-and-exclude-directories.html) – Toufic Batache Jun 14 '23 at 17:21
1

IntelliJ IDEA 2017.1.2 Ultimate on macOS Sierra 10.12.4

enter image description here

Vy Do
  • 46,709
  • 59
  • 215
  • 313
0

The solution to:

Check “Ignored files and folders” in File Types settings:

as explained in accepted answer, is located in the new UI as shown below:

enter image description here

user2791560
  • 39
  • 1
  • 6
  • 2
    I accept this as a separate contribution (i.e. an answer of its own), though others might disagree. However, please replace "accepted answer" by the link you get from the "Share" beneath it. And you might rephrase to make more obvious what you contribute, maybe something like "The solution to > Check “Ignored files and folders”, as in the existing answer ... link ... is done in the new UI this way: ... picture ...". – Yunnosch May 31 '23 at 10:28
  • Putting files here will also make them disappear from the git tool (even if they're not gitignored)... Is there a way around this where the files can be hidden in the project view but still work in other parts of the IDE (like in the git tool)? – Microbob Aug 20 '23 at 07:20
-1

Go to File -> Settings -> File Types

enter image description here

GtdDev
  • 748
  • 6
  • 14