How to rearrange code alphabetically in Android Studio?
Asked Answered
E

1

8

As I understand, built-in rearranger sort members of the class by access, final and static modifiers, but not alphabetically. Recommended for this plugin rearranger is definitely outdated (last update in November 2011)

Please recommend me something for Android Studio with functionality like plugin Codemaid in Visual Studio or just sorting with an alphabet.

Thanks for the consideration!

Eyesore answered 25/10, 2018 at 22:22 Comment(0)
R
12

On a Mac (Android Studio 3.2.1)

Go to preferences -> Plugins -> Browse Repositories

Search for Lines Sorter. Install the plugin.

Once installed restart Android Studio, go to Edit -> Sort Lines (Last Option) after making a selection.

Installed Plugin Screenshot

enter image description here

Rockaway answered 25/3, 2019 at 2:22 Comment(1)
Awesome! On Windows (Android 3.4): File > Settings... > Plugins.Cairistiona

© 2022 - 2024 — McMap. All rights reserved.