forFor code formatting in Android Studio
:
CTRLCtrl + ALTAlt + L (WinWindows/ LinuxLinux)
OPTIONOption + CMDCmd + L (Mac)
The user can also use Eclipse's keyboard shortcuts: just go on menu Setting>>preferences->keymap and choose eclipseSetting → Preferences → Keymap and choose Eclipse (or any one you like) from the dropdown menu.