Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 716
Bogdan Samchuk Avatar asked Jan 28 '23 06:01

Bogdan Samchuk


1 Answers

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

like image 81
DragonFire Avatar answered Feb 11 '23 21:02

DragonFire