Search code examples
javaandroidandroid-studioindentation

How to correct indentation in Android Studio


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

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


Solution

  • Select the code and press

    • On Windows: Ctrl + Alt + L
    • On MAC: CMD + Option + L