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

Imports should be grouped by default #3403

Closed
mkpankov opened this issue Feb 15, 2019 · 0 comments
Closed

Imports should be grouped by default #3403

mkpankov opened this issue Feb 15, 2019 · 0 comments
Assignees
Labels
improvement subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.

Comments

@mkpankov
Copy link

Automatic import now inserts a new use line for every import: so std::collections::HashMap and std::collections::BTreeMap are imported in potentially different places.

I'd like to see automatic imports grouping at least by last component, so std::collections::HashMap becomes std::collections::{HashMap, BTreeMap} when making second import.

Grouping all imports from same library in one use statement should be optional.

@Undin Undin transferred this issue from intellij-rust/intellij-rust.github.io Feb 15, 2019
@Undin Undin self-assigned this Feb 15, 2019
@Undin Undin added subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. improvement labels Feb 15, 2019
@Undin Undin assigned mchernyavsky and unassigned Undin Feb 16, 2019
bors bot added a commit that referenced this issue Feb 24, 2019
3405: ACT: Try to group auto-inserted use item with existing ones by last component r=vlad20012 a=mchernyavsky

Closes #3403.

Co-authored-by: mchernyavsky <chemike47@gmail.com>
@bors bors bot closed this as completed in #3405 Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc.
Projects
None yet
Development

No branches or pull requests

3 participants