| 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) |
| Save all | ⌘S |
| Synchronize files | ⌥⌘Y |
| Apply code changes | ⌃⇧⌘R |
| Commit project to VCS | ⌘K |
| Update project from VCS | ⌘T |
| Show recent VCS changes | ⌥⇧C |
| Open VCS popup | ⌃V |
| 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 |
| Complete statement | ⇧⌘Enter |
| Inspect file with current profile | ⌥⇧I |
| Layout Editor: Design or Blueprint | B |
| Layout Editor: toggle orientation | O |
| Layout Editor: switch device | D |
| Layout Editor: force refresh | R |
| Layout Editor: toggle render errors | E |
| Navigation Editor: nest graph | ⌘G |
| Navigation Editor: cycle destinations | Tab/⇧Tab |
| Navigation Editor: select all destinations | ⌘A |
| Generate code | ⌘N |
| Override methods | ⌃O |
| Implement methods | ⌃I |
| Fold or unfold current code block | ⌘-/⌘++ |
| Fold or unfold all code blocks | ⇧⌘-/⇧⌘++ |
| Quick documentation | ⌃J |
| Show method parameters | ⌘P |
| Quick definition | ⌘Y |
| Expand code selection | ⌥↑ |
| Shrink code selection | ⌥↓ |
| Select to code block start | ⌥⇧⌘[ |
| Select to code block end | ⌥⇧⌘] |
| Auto-indent lines | ⌃⌥I |
| Indent or unindent lines | Tab/⇧Tab |
| Smart join lines | ⌃⇧J |
| Smart split line | ⌘Enter |
| Start new line | ⇧Enter |
| 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 |
| Toggle Project tool window | ⌘1 |
| Open Version Control window | ⌘9 |
| Return to editor | Esc |
| Add to favorites | ⌥⇧F |
| Switch IDE scheme | ⌃` |
| Open IDE settings | ⌘, |
| Open project structure | ⌘; |
| Switch tabs and tool windows | ⌃Tab |
| Find in editor | ⌘F |
| Find next | ⌘G |
| Find previous | ⇧⌘G |
| Replace in editor | ⌘R |
| Find action | ⇧⌘A |
| Search symbol name | ⌥⌘O |
| Find in project path | ⇧⌘F |
| Show file structure | ⌘F12 |
| Jump to source | F4/⌘↓ |
| Open editor tab in new window | ⇧F4 |
| Close editor tab | ⌘W |
| Hide active tool window | ⇧Esc |
| Show type hierarchy | ⌃H |
| Show method hierarchy | ⇧⌘H |
| Show call hierarchy | ⌃⌥H |
| Fit layout preview to screen | ⌘0 |
| Actual size in layout preview | ⇧⌘1 |
| Layout Editor: zoom in | ⌘++ |
| Layout Editor: zoom out | ⌘- |
| Go to super method or class | ⌘U |
| Toggle bookmark | F3 |
| Toggle mnemonic bookmark | ⌥F3 |
| Go to code block start | ⌥⌘[ |
| Go to code block end | ⌥⌘] |
| Next or previous highlighted error | F2/⇧F2 |
| Refactoring |
|---|
| Rename | ⇧F6 |
| Extract variable | ⌘⌥V |
| Extract method | ⌘⌥M |
| Extract field | ⌘⌥F |
| Extract constant | ⌘⌥C |
| Inline | ⌘⌥N |
| Move | F6 |
| Copy by refactoring | F5 |
| Change signature | ⌘F6 |
| Extract parameter | ⌥⌘P |
| Debugging |
|---|
| Toggle breakpoint | ⌘F8 |
| Step over | F8 |
| Step into | F7 |
| Step out | ⇧F8 |
| Resume program | ⌘⌥R |
| Evaluate expression | ⌥F8 |
| View breakpoints | ⌘⇧F8 |
| Open Logcat window | ⌘6 |
| Smart step into | ⇧F7 |
| Run to cursor | ⌥F9 |