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
I have an enum with an increasingly large number of variants that I'd like to sort alphabetically so that they don't get entirely out of hand.
Rust-analyzer already supports doing this for the enum declaration. However, I also have multiple match statements that operate on that enum, and I'd like to sort them in the same order as enum variants.
I can do it with a shell script in simple cases but anything even slightly more complex requires parsing Rust code, so I'd really prefer for rust-analyzer to handle it.