Android Studio macOS Shortcuts
| Action | macOS Shortcut |
|---|---|
| Build & Run | |
| Build project | ⌘F9 |
| Run app | ⌃R |
| Debug app | ⌃D |
| Stop running | ⌘F2 |
| Run with coverage | ⌃⇧R |
| Apply changes | ⌃⌘R |
| Sync project with Gradle | ⌘⇧O(Project) |
| Code Editing | |
| Code completion (basic) | ⌃Space |
| Code completion (smart) | ⌃⇧Space |
| Show intention actions | ⌥Enter |
| Reformat code | ⌘⌥L |
| Optimize imports | ⌃⌥O |
| Duplicate line | ⌘D |
| Delete line | ⌘⌫ |
| Move line up | ⌥⇧Up |
| Move line down | ⌥⇧Down |
| Comment / uncomment line | ⌘/ |
| Comment block | ⌘⇧/ |
| Surround with… | ⌘⌥T |
| Navigation | |
| Search everywhere | ShiftShift |
| Go to class | ⌘O |
| Go to file | ⌘⇧O |
| Go to declaration | ⌘B |
| Go to implementation | ⌘⌥B |
| Find usages | ⌥F7 |
| Navigate back | ⌘[ |
| Navigate forward | ⌘] |
| Go to line | ⌘L |
| Recent files | ⌘E |
| Recently changed files | ⌘⇧E |
| Refactoring | |
| Rename | ⇧F6 |
| Extract variable | ⌘⌥V |
| Extract method | ⌘⌥M |
| Extract field | ⌘⌥F |
| Extract constant | ⌘⌥C |
| Inline | ⌘⌥N |
| Move | F6 |
| Debugging | |
| Toggle breakpoint | ⌘F8 |
| Step over | F8 |
| Step into | F7 |
| Step out | ⇧F8 |
| Resume program | ⌘⌥R |
| Evaluate expression | ⌥F8 |
| View breakpoints | ⌘⇧F8 |