rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Feature Request: Custom auto-import order

Open Nugine opened this issue 2 years ago • 4 comments

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.

Nugine avatar Jan 16 '23 08:01 Nugine