Reputation: 29
I have a class where I declare many variables concurrently.
Is there any combination of keys or extension to sort them by letters?
I use the IDE AndroidStudio 2022 and the code is in Dart.
Upvotes: 0
Views: 707
Reputation: 5222
Yes, you can sort the members automatically, but the actions aren't assigned to a shortcut by default.
Windows: ⇧ Ctrl + A
MacOs: ⇧ ⌘ + A
Type Sort Members in Dart File
Windows: ⇧ Ctrl + P
MacOs: ⇧ ⌘ + P
Type > Dart: Sort Members
Upvotes: 1