Reputation: 709
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. :)
Upvotes: 15
Views: 16031
Reputation: 729
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
Upvotes: 8
Reputation: 41
There is a EditorConfig - independent format for editors/IDEs code style configuration. There are EditorConfig plugins for most popular editors(see full list here).
You can see examples for IntelliJ IDEA(tutorial) and Eclipse(plugin page).
Upvotes: 4
Reputation: 87
The exact data from JetBrains is here. Check out the Link
Hit like if this helps.
Upvotes: 0
Reputation: 519
You can export settings in Intellij by clicking on File > Export Settings but they will be in .jar format.
According to this thread there is no easy way of importing settings.jar into eclipse.
Eclipse - import code format settings
I hope this helps :)
Upvotes: 3