android studio auto format code example Example: auto format android studio Cmd+Alt+L (on Mac) Ctrl+Alt+L (on Windows and Linux)