bmargulies
bmargulies

Reputation: 100161

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?

Upvotes: 3

Views: 7317

Answers (2)

DuKes0mE
DuKes0mE

Reputation: 1131

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.

Upvotes: 6

CrazyCoder
CrazyCoder

Reputation: 402443

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.

Upvotes: 5

Related Questions