Skip to content

Organize imports enhancement #2748

Open
@CsCherrYY

Description

@CsCherrYY

Currently "Organize imports" will do three things:

  • Add missing imports
  • Remove all unused imports
  • Sort existing imports

And there are serveral requests about feature "Organize imports":

Organize import without sorting:

Organize imports (and other code actions) in multiple files:

We can find rooms to improve. Although we have configuration java.completion.importOrder, it's not such visible and it's hard to "hardcode" a package list for some users. In this way, we can have serveral points to improve:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions