You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
thanks a lot for your work on rustfmt. I would like to have an option to always put all imports into a single group. I tried looking for an existing issue but I might have missed one
The rationale is that I like the idea of rustfmt enforcing the grouping, but find it nicer to have them all together, ordered inside the group the way rustfmt currently does it.
If this is something that could be added to rustfmt, I could take a look at making a PR. At a glance it looks like I could just follow the implementation of the StdExternalCrate option and it wouldn't be too difficult.
As for the name, maybe something like "Together"?
group_imports = "Together"
The text was updated successfully, but these errors were encountered:
Heliozoa
changed the title
group_imports option to remove groupinggroup_imports option to remove grouping
Aug 22, 2021
I was going to close the issue since the PR was merged but I noticed the 2x port pending tag. What would be involved in implementing that? Does it just refer to compatibility with version = Two?
I was going to close the issue since the PR was merged but I noticed the 2x port pending tag. What would be involved in implementing that? Does it just refer to compatibility with version = Two?
Thanks for the question. The port labels are primarily for the rustfmt team to help us deal with some branch-related management activities. I'm going to go ahead and close this given that your PR has been merged, thanks again!
Hi,
thanks a lot for your work on rustfmt. I would like to have an option to always put all imports into a single group. I tried looking for an existing issue but I might have missed one
would format to
The rationale is that I like the idea of rustfmt enforcing the grouping, but find it nicer to have them all together, ordered inside the group the way rustfmt currently does it.
If this is something that could be added to rustfmt, I could take a look at making a PR. At a glance it looks like I could just follow the implementation of the StdExternalCrate option and it wouldn't be too difficult.
As for the name, maybe something like "Together"?
The text was updated successfully, but these errors were encountered: