我们需要为项目中的所有开发人员提供通用的代码样式配置。如何调整Intellij IDEA以从云自动更新代码样式配置?例如:向git存储库添加了codeStyleSettings.xml。从存储库中提取codeStyleSettings.xml的新更改时,将更新项目代码样式的本地配置。
我在那里找到答案-How to share Code Style settings between developers in IntelliJ。代码样式可以为copied to project,并保存为.idea / codeStyles。下一步需要排除在gitignore中忽略此文件夹。