Skip to content

Feature Request: Custom auto-import order #13960

Open
@Nugine

Description

@Nugine

My favour is the following order, sorted by priority.

  1. Sub module
  2. Super module
  3. Current crate
  4. Workspace crates
  5. std/alloc/core items
  6. External crates

However, the current auto-import feature enforces a built-in order which I cannot adjust.
https://rust-analyzer.github.io/manual.html#auto-import

It would be better if I don't have to reorder imports manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configconfigurationC-featureCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions