Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export Intellij IDEA code formatting rules to Eclipse

Is there a way to generate a eclipse code formatter xml which matches Intellij IDEA code formatting rules?

like image 731
Lahiru Chandima Avatar asked Mar 24 '15 06:03

Lahiru Chandima


People also ask

How do I export code formatter in Eclipse?

All you need is to export settings from Eclipse (go to Eclipse's Preferences → Java → Code Style → Formatter and export the settings to an XML file via the Export All button.), and then open IntelliJ IDEA Settings → Code Style → Java, click Manage, and import that XML file by simply clicking Import.

How can I get beautify code in Eclipse?

Go to Source | Format Document or press Ctrl+Shift+F.

How do I export a project from IntelliJ to Eclipse?

From the main menu, select File | Export | Project to Eclipse…. The Export to Eclipse dialog displays the list of modules that have not been converted and switched to use the Eclipse format yet (the modules that have the IntelliJ IDEA module format . iml). Select the modules you want to export.


1 Answers

At the moment there is no way to export IntelliJ code style to eclipse. You need to do it the other way around.

You can also check IntelliJ plugin called "Eclipse Code Formatter" (link), but it the same way, from Eclipse to IntelliJ.

I'm using IntelliJ 14.1.4

like image 146
Albert Casanovas Avatar answered Oct 04 '22 15:10

Albert Casanovas