Bogdan Samchuk
Bogdan Samchuk

Reputation: 178

How to rearrange code alphabetically in Android Studio?

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!

Upvotes: 9

Views: 2617

Answers (1)

DragonFire
DragonFire

Reputation: 4102

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

Upvotes: 12

Related Questions