Android Studio : How to reformat code of entire project?
Asked Answered
C

2

13

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

Carvel answered 26/7, 2016 at 12:54 Comment(0)
S
22

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

Serrano answered 26/7, 2016 at 13:5 Comment(0)
V
5

Select your sources folder like "java" and use the command Ctrl + Alt + L

OR

Right click on source folder say for instance "java" and select "Reformat Code". A dialog "Reformat Code" would be shown. Select checkbox "Include subdirectories" and hit "Run".

enter image description here

Vella answered 26/7, 2016 at 13:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.