-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Java style for Eclipse formats imports incorrectly #273
Comments
Is there a workaround available besides running the formatter outside of eclipse? |
Using IntelliJ? :D |
For those who still comes to this issue for solution, here is how to Organize Import should be set up: |
Thanks @mkolesnikov for the workaround. It helped me out organize import groups on my project. |
Just stumbled upon this problem. Indeed, this would be a nice and easy change: just set |
There has been an open PR #279 for a long time. |
From https://google.github.io/styleguide/javaguide.html#s3.3.3-import-ordering-and-spacing:
Now, all imports are in a single block:
Empty line should be left between static and non-static imports, so it should be like this:
This formatting is done by this line in config:
The problem is that Eclipse doesn't seem to support custom spacing between static and non-static groups.
The text was updated successfully, but these errors were encountered: