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

Is there a way to configure the import order to have the same order than the default for IntelliJ? #485

Open
oscarvarto opened this issue Aug 10, 2024 · 0 comments

Comments

@oscarvarto
Copy link

I see that the documentation here mentions:
lsp-java-completion-import-order
and also mentions the possibility to import an XML file to specify a lot of formatting options.

But I couldn't find any mention of the group ordering of static imports vs. the rest of imports.
Does lsp-java support the configuration of this?

All my team-mates use IntelliJ, but I would love to use Emacs lsp-java instead, but I see that import ordering (by default) is different, and the code standard in the company is very strict :(
I think the default order that IntelliJ uses is somewhat like:

import all other imports
<blank line>
import static all other imports

if lsp-java-completion-import-order supports this, how can I specify "static" imports at the end (or at the beginning if that would be necessary)?

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

1 participant