What to gitignore from the .idea folder?

前端 未结 9 1724
天命终不由人
天命终不由人 2020-11-29 14:37

Possible Duplicate:
Intellij Idea 9/10, what folders to check into (or not check into) source control?

I star

9条回答
  •  执念已碎
    2020-11-29 15:02

    For a couple of years I was a supporter of using a specific .gitignore for IntelliJ with this suggested configuration.

    Not anymore.

    IntelliJ is updated quite frequently, internal config file specs change more often than I would like and JetBrains flagship excels at auto-configuring itself based on maven/gradle/etc build files.

    So my suggestion would be to leave all editor config files out of project and have users configure editor to their liking. Things like code styling can and should be configured at build level; say using Google Code Style or CheckStyle directly on Maven/Gradle/sbt/etc.

    This ensures consistency and leaves editor files out of source code that, in my personal opinion, is where they should be.

提交回复
热议问题