A module file (the . iml file) is used for keeping module configuration. Modules allow you to combine several technologies and frameworks in one application. In IntelliJ IDEA, you can create several modules for a project and each of them can be responsible for its own framework.
In case you delete a module IML file, you can regenerate the file by rebuilding your project, reimporting your project, or opening and closing IDE. IML file is referenced and generated within IDEs. To open or edit . iml files, you need appropriate software.
iml files have nothing to do with your code/Java. It is a hidden file created by Intellij on the root folder of your project which contains your module information. This is the reason you should not version this kind of file, afterall other developers using a different IDE won't need them.
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:
http://blogs.jetbrains.com/idea/2011/04/intellij-idea-does-not-show-some-files-know-the-hiding-places/
For Intellij IDEA 13 on OS X 10.9, do this:
Intellij IDEA > Preferences
.IDE Settings
section, go to File Types
.*.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!
File
-> Settings
-> File Types
*.iml
to the list below "Ignore files and folders" (located at the bottom of the dialog)IntelliJ 14 and 15 on Mac OS X (they've changed the hierarchy again in 14):
IntelliJ IDEA
-> Preferences
-> Editor
-> File Types
*.iml
to the list below "Ignore files and folders" (located at the bottom of the dialog)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