Skip to content

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

@oscarvarto

Description

@oscarvarto

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions