Organizing java files in Android Studio

Is there anyway that I can get Android Studio (or a plugin) to organize the contents of my Java files so that it groups properties together, methods are grouped in alphabetical order, etc.?

thank

+3
source share
1 answer

Yes, not everything you need, but there is a plug-in with Android Studio that can nicely organize your code on some existing one.

First you need to install the Rules here (in Studio automatically installed by default)

File > Settings > Code Style > Arrangement

arrange code

Then from the open java file go to Help > Find Actionand start typing Rearrange code, it automatically issues an action to organize your code.

Shortcut to open a search action Ctrl+Shift+A

+4
source

All Articles