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
Exporting and Importing Code Templates To import a code template: Click Import to open the "Import Templates" browser. Select the relevant XML file containing the template information. Click Open.
In the editor, select a code fragment you want to reformat. Before reformatting, you can take a look at the code style settings that are applied to the selected code: press Alt+Enter and click Adjust code style settings. From the main menu, select Code | Reformat Code or press Ctrl+Alt+L .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With