https://kotlinlang.org logo
#announcements
Title
# announcements
p

Patrick

10/26/2019, 2:18 PM
What are your thoughts on committing the .idea file? Does this make sense or are those custom settings for every user?
k

karelpeeters

10/26/2019, 3:01 PM
Official support says to commit the
.idea
folder partially: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
k

kevinherron

10/26/2019, 3:36 PM
we don't commit IDE files and try to ensure our project can be developed and built without one
or with the IDE of your choice
p

Pablichjenkov

10/26/2019, 5:48 PM
I don't commit it either. I really wish there were more documentation on what each IDE file does. Having a common setup for all the developers already in the repo would be so productive. Specially when someone joins a team.
w

wasyl

10/26/2019, 5:50 PM
We commit some files, most notably project codestyle file.
try to ensure our project can be developed and built without one
If you’re using Maven or Gradle you’ll still be able to build and develop the project outside Idea. Files in .idea mostly cover Idea-specific configuration (which gets synced from Gradle/Maven configuration) or Idea-specific functionality (and this doesn’t break other IDEs)
k

kevinherron

10/26/2019, 6:23 PM
it probably would be okay as long as .idea folder only contains stuff that applies to the project in general and not individual developers
our codestyle is enforced by checkstyle plugin in the build
aside from maybe launch configs i can't really see why it's necessary though
w

wasyl

10/26/2019, 7:08 PM
our codestyle is enforced by checkstyle plugin in the build
Checkstyle doesn’t format code automatically though. If some developer uses IJ, providing them with already configured code formatting settings is useful. Similarly launch configurations. Overall I don’t think it’s ever necessary to commit .idea files, it’s just convenient for people using IJ and doesn’t hurt those that use other IDEs
👍 2