Matt
Matt

Reputation: 1333

Import IntelliJ formatter options into eclipse?

I'm the only one using eclipse in an all-IntelliJ team. Is there any way I can have eclipse format the code with the same style as the default IntelliJ formatter does, without having to manually adapt everything?

Something like the opposite to the IntelliJ eclipse formatter plugin

Upvotes: 11

Views: 4234

Answers (1)

Javaru
Javaru

Reputation: 31906

This subject has come up many times over the years in the IntelliJ IDEA forums. Having common code formatting definitions is probably one of the biggest sticking points in a poly-IDE environment. There is not a way to go from IDEA formatting rules to Eclipse formatting rules. Since IDEA users tend to be in the minority in groups, there tends to be a "if you want to use the odd ball IDE (i.e. IntelliJ IDEA), then you have to deal with keeping things in sync". Thus the availability of the IntelliJ eclipse formatter plugin you mention, but not the other way around.

Upvotes: 10

Related Questions