EclipseCodeFormatter icon indicating copy to clipboard operation
EclipseCodeFormatter copied to clipboard

Imports have an empty line between packages

Open TotallyABot1 opened this issue 3 years ago • 2 comments
trafficstars

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

TotallyABot1 avatar Mar 28 '22 08:03 TotallyABot1

I have to implement it

krasa avatar Mar 28 '22 09:03 krasa

I have to implement it

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

TotallyABot1 avatar Mar 28 '22 11:03 TotallyABot1