Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import eclipse settings to intellijI

I've got a stack of eclipse settings for code format. Is there any way to import these into intellij?

like image 808
bmargulies Avatar asked Mar 10 '26 17:03

bmargulies


2 Answers

With IntelliJ IDEA 13 you can also import eclipse Code formatting settings without the need of any plugins.

First you have to export those Code Formatter settings in eclipse. In eclipse go to the Preferences >> Java >> Code Style >> Formatter and export it via "Export All" option.

As a result, you will get a XML file.

In IntelliJ, go to File >> Other Settings >> Default Settings >> Code Style >> Java >> go to "Manage" >> go to "Import" and select that exported XML file.

Apply Changes and IntelliJ should format automatically now.

like image 196
DuKes0mE Avatar answered Mar 13 '26 07:03

DuKes0mE


IntelliJ IDEA doesn't support Eclipse code style settings, however, there is a plug-in to use external Eclipse code formatting instead of the internal one, so that you will get the same formatting in Eclipse and in IntelliJ IDEA.

like image 28
CrazyCoder Avatar answered Mar 13 '26 08:03

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!