posted this on March 19, 2013 05:03
If you decide to share IDE project files with other developers, follow these guidelines:
This format is used by all the recent IDE versions by default. Here is what you need to share:
Be careful about sharing the following:
You may consider not to share the following:
What about .idea/libraries?
Should I store them in the source control repository?
There are many *.xml that change frequently.
David Perez, it would depend on the project you are using. If the project is Maven or Gradle based and these library files are generated automatically on import, you can exclude them from the version control. When the libraries are configured manually by the user, they should be shared.
Thanks for the very quick and clarifying reply. In my case they are managed by Maven and SBT, so I can remove them.
This is so wrong... A whole lot of files inside .idea store user-specific settings, depending on a variety of different things like the set of installed plugins. Also, in practice, not all project settings can be shared among all developers. (My personal favorite -- spell checking. I always turn it off as it is rather distracting, the negative is that it's a change inside .idea that I have to deal with.)
Erdinc, it's not possible. Your use case and the feature request is welcome at http://youtrack.jetbrains.com/issues/IDEA. Please describe what configuration files are different between the users and how you want to share them.
Here's my current issue with checking in *.iml: http://youtrack.jetbrains.com/issue/RUBY-14941
if dataSources.xml is supposed to be excluded, should sqlDataSources.xml also be excluded?
Actually I don't think you can ignore dataSources.xml, because if you have configured some JPA/ORM persistence checking in your project, then the .iml file will contain those references, which appear to reference structures in sqlDataSources.xml which reference structures in dataSources.xml. Does that sound right?
Support Ticket System by Zendesk