Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports have an empty line between packages #243

Open
TotallyABot1 opened this issue Mar 28, 2022 · 2 comments
Open

Imports have an empty line between packages #243

TotallyABot1 opened this issue Mar 28, 2022 · 2 comments

Comments

@TotallyABot1
Copy link

TotallyABot1 commented Mar 28, 2022

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
Copy link
Owner

krasa commented Mar 28, 2022

I have to implement it

@TotallyABot1
Copy link
Author

I have to implement it

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants