Android Studio
Auto indent the lines
Press Ctrl + Alt + I to auto indent the lines in Android Studio. On a Mac, press Ctrl + Option + I instead.
Where it works: Editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CtrlOptionI |
| Windows | Desktop app | CtrlAltI |
Where this comes from
Keyboard shortcuts - Android Studio - Android Developers
Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.