Android Studio: how to reformat the code of the whole project?

I am looking for a way to reformat the code of the entire project, which is available for individual files through codereformat code .

+5
source share
2 answers

Right-click the application folder in android studio, from the left pane. You will see the Reformat Code option

+6
source

Select the source folder, for example "java", and use the command Ctrl + Alt + L

OR

Right-click on the source folder, say, for example, "java" and select "Reformat Code". The "Reformat Code" dialog box appears. Check the box next to "Include subdirectories" and click "Run."

enter image description here

+1
source

All Articles