javaeclipseintellij-ideacheckstyleeclipse-formatter

Importing code style formatting settings into eclipse from intellij-idea


I've recently implemented the maven Check style plugging into my project and have changed all of the formater Settings in intellij (Which I use) to conform to this style guide (which they now do).

However I need to produce a settings .xml file for eclipse, so that my colleagues can automatically format there code so that it also conforms to this style guide.

The problem I am finding is that I cannot see a way of exporting the settings from intellij and importing them into eclipse. and I cannot manually configure eclipse to conform with the nuances of the new style guide (Continuation indentation being the main problem).

Any help or Ideas would be fantastic. :)


Solution

  • I couldn't find a ready plugin for that in 2018. So here is a side by side code style configuration from UI perspective of Intellij IDEA 2017.3 and Eclipse OXYGEN.3 March 2018. If both configured this way the code will be formatted close enough, so for example github will show you code differences so that it make sense.

    For our project we configured one XML for each IDE so they more or less match:

    There is also a project to solve this problem across more IDEs(Answer) : EditorConfig