Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio : How to reformat code of entire project?

I am looking for a way to reformat code of entire project, which is available for individual files via code -> reformat code.

like image 626
q126y Avatar asked Jul 26 '16 12:07

q126y


People also ask

How do I rearrange the code in Android Studio?

After opening the file we have to simply press the shortcut key as Ctrl+Alt+L to reformat the code in your file. With this key, the code in your file will be rearranged according to the code standards.

What is code cleanup in Android Studio?

After inspection of code, Android Studio will remove such code from your files that is not necessary. It is called cleaning up code. There are many plugins available for it. As Android Studio support by default, You can format and clean your code using this feature.


1 Answers

Right click on app folder in android studio , from left panel . You will see the option for Reformat Code

like image 112
Mithun Sarker Shuvro Avatar answered Oct 02 '22 23:10

Mithun Sarker Shuvro