programmatically set code style import perferences?
已回答
Hi,
Is there a way to programmatically set the code style import preferences for java projects?
We currently use a custom maven plugin to generate our .idea and .iml files and I would like to try setting import preferences as part of this. If I have to use a plugin to set the import preferences, is it possible to programmatically install a plugin? I'm trying to make it super simple for everyone to be on the same settings.
Thanks
请先登录再写评论。
You can share the project code style via version control. Project specific code style is stored in .idea directory.
See https://intellij-support.jetbrains.com/hc/articles/206544839.
Serge Baranov, we don't commit anything in .idea to version control as a rule, especially since that directory is generated via maven.
If a project has a .idea/codeStyleSettings.xml file will it automatically be used?
Yes.