Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to correct indentation in android studio [duplicate]

In Eclipse we can correct indentation by pressing Ctrl + Shift + F.

How can I correct indentation (format code) in Android Studio?

like image 515
alanTuring Avatar asked Aug 14 '15 04:08

alanTuring


1 Answers

Select the code and press

  • On Windows: Ctrl + Alt + L
  • On MAC: CMD + Option + L
like image 178
Deadlock Avatar answered Oct 05 '22 20:10

Deadlock