且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Git源代码控制下处理IntelliJ IDEA项目文件不断变化?

更新时间:2023-09-18 15:40:28

You can use IDEA's directory-based project structure, where the settings are stored in .idea directory instead of .ipr file. It gives more fine-grained control over what is stored in version control. The .iml files will still be around, so it doesn't solve the random changes in them (maybe keep them out of source control?), but sharing things such as code style and inspection profiles is easy, since each of them will be in its own file under the .idea directory.