krasa / EclipseCodeFormatter

IntelliJ plugin - use Eclipse's code formatter directly from IntelliJ. https://plugins.jetbrains.com/plugin/6546
Apache License 2.0
484 stars 118 forks source link

Imports have an empty line between packages #243

Open TotallyABot1 opened 2 years ago

TotallyABot1 commented 2 years ago

I just noticed that when i format my imports using this plugin it will always add an empty line between each import groups.

I disabled that option in the eclipse_format.xml and in IntelliJ, but that doesn't seem to help. <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="0"/> The custom import order from *.importorder doesn't contain any empty lines either.

Using the IntelliJ-Formatter or disabling the "Optimize Imports" option wit hthe Eclipse Formatter prevents this from happening, so it has to have something to do with this plugin.

Is that a bug or is there something not configured correctly? I'll attach my used files, but using the file ending "txt", since i can't uplaod .xml or .importorder.

custom_formatter.txt example_importorder.txt

krasa commented 2 years ago

I have to implement it

TotallyABot1 commented 2 years ago

I have to implement it

Ah okay, thanks for the quick reply. That would be really nice! :-)