bors[bot]
caac771439
Merge #9735
9735: Add assist to sort members alphabetically. r=matklad a=vsrs
Supports traits, impls, structs, unions and enums (including inner struct variants). Does not support modules yet.
```rust
en┃um Animal {
Dog(String, f64),
Cat { weight: f64, name: String },
}
```
->
```rust
enum Animal {
Cat { weight: f64, name: String },
Dog(String, f64),
}
```
---
```rust
enum Animal {
Dog(String, f64),
Cat {┃ weight: f64, name: String },
}
```
->
```rust
enum Animal {
Dog(String, f64),
Cat { name: String, weight: f64 },
}
```
---
More samples in docs 0b7835619a/crates/ide_assists/src/handlers/sort_items.rs (L12-L83)
.
Relates #6110
Co-authored-by: vsrs <vit@conrlab.com>
2021-08-09 10:21:14 +00:00
..
2021-07-23 19:57:16 +02:00
2021-07-20 16:23:57 +03:00
2021-07-17 18:13:35 +03:00
2021-08-08 10:12:40 +02:00
2021-08-07 22:30:13 +02:00
2021-08-08 17:56:34 +02:00
2021-08-08 18:40:28 +03:00
2021-08-08 18:58:42 +02:00
2021-08-09 10:21:14 +00:00
2021-08-08 15:53:31 +03:00
2021-08-05 12:04:37 +01:00
2021-08-08 10:35:00 +00:00
2021-08-03 17:28:51 +02:00
2021-07-31 18:26:43 +03:00
2021-07-05 14:19:41 +03:00
2021-08-04 03:01:48 -07:00
2021-07-18 10:25:14 +03:00
2021-07-31 14:29:15 +02:00
2021-08-07 16:34:59 +01:00
2021-07-09 11:01:55 -04:00
2021-07-31 16:22:03 +03:00
2021-08-01 15:00:34 -07:00
2021-08-08 18:44:54 +02:00
2021-07-13 15:02:29 +03:00
2021-07-08 16:43:39 +02:00
2021-08-08 22:30:37 +00:00
2021-08-09 00:00:09 +02:00
2021-08-09 13:13:02 +03:00
2021-07-05 14:19:41 +03:00
2021-07-05 14:19:41 +03:00
2021-07-17 17:55:16 +03:00
2021-08-03 14:33:37 +03:00