Reputation: 24128
Is there a way to generate a eclipse code formatter xml which matches Intellij IDEA code formatting rules?
Upvotes: 12
Views: 4961
Reputation: 1581
Try this:
Active profile
and Apply:Screenshots are from IntelliJ IDEA 2022.3.2 (Community Edition)
and Eclipse 2022-03 (4.23.0)
Upvotes: 1
Reputation: 377
If CheckStyle is an option for you, consider using it as 'single source of truth':
See answers to related question.
I haven't tried it yet.
Upvotes: 2
Reputation: 254
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
Upvotes: 1