| Build & Run |
|---|
| Build project | Ctrl+F9 |
| Run app | Shift+F10 |
| Debug app | Shift+F9 |
| Stop running | Ctrl+F2 |
| Run with coverage | Ctrl+Shift+F10 |
| Apply changes | Ctrl+F10 |
| Sync project with Gradle | Ctrl+Shift+O(Project) |
| Save all | Ctrl+S |
| Synchronize files | Ctrl+Alt+Y |
| Apply code changes | Ctrl+Alt+F10 |
| Commit project to VCS | Ctrl+K |
| Update project from VCS | Ctrl+T |
| Show recent VCS changes | Alt+Shift+C |
| Open VCS popup | Alt+` |
| Code Editing |
|---|
| Code completion (basic) | Ctrl+Space |
| Code completion (smart) | Ctrl+Shift+Space |
| Show intention actions | Alt+Enter |
| Reformat code | Ctrl+Alt+L |
| Optimize imports | Ctrl+Alt+O |
| Duplicate line | Ctrl+D |
| Delete line | Ctrl+Y |
| Move line up | Alt+Shift+Up |
| Move line down | Alt+Shift+Down |
| Comment / uncomment line | Ctrl+/ |
| Comment block | Ctrl+Shift+/ |
| Surround with… | Ctrl+Alt+T |
| Complete statement | Ctrl+Shift+Enter |
| Inspect file with current profile | Alt+Shift+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 | Ctrl+G |
| Navigation Editor: cycle destinations | Tab/Shift+Tab |
| Navigation Editor: select all destinations | Ctrl+A |
| Generate code | Alt+Insert |
| Override methods | Ctrl+O |
| Implement methods | Ctrl+I |
| Fold or unfold current code block | Ctrl+-/Ctrl++ |
| Fold or unfold all code blocks | Ctrl+Shift+-/Ctrl+Shift++ |
| Quick documentation | Ctrl+Q |
| Show method parameters | Ctrl+P |
| Quick definition | Ctrl+Shift+I |
| Expand code selection | Ctrl+W |
| Shrink code selection | Ctrl+Shift+W |
| Select to code block start | Ctrl+Shift+[ |
| Select to code block end | Ctrl+Shift+] |
| Auto-indent lines | Ctrl+Alt+I |
| Indent or unindent lines | Tab/Shift+Tab |
| Smart join lines | Ctrl+Shift+J |
| Smart split line | Ctrl+Enter |
| Start new line | Shift+Enter |
| Navigation |
|---|
| Search everywhere | ShiftShift |
| Go to class | Ctrl+N |
| Go to file | Ctrl+Shift+N |
| Go to declaration | Ctrl+B |
| Go to implementation | Ctrl+Alt+B |
| Find usages | Alt+F7 |
| Navigate back | Alt+Left/Ctrl+Alt+Left |
| Navigate forward | Alt+Right/Ctrl+Alt+Right |
| Go to line | Ctrl+G |
| Recent files | Ctrl+E |
| Recently changed files | Ctrl+Shift+E |
| Toggle Project tool window | Alt+1 |
| Open Version Control window | Alt+9 |
| Return to editor | Esc |
| Add to favorites | Alt+Shift+F |
| Switch IDE scheme | Ctrl+` |
| Open IDE settings | Ctrl+Alt+S |
| Open project structure | Ctrl+Alt+Shift+S |
| Switch tabs and tool windows | Ctrl+Tab |
| Find in editor | Ctrl+F |
| Find next | F3 |
| Find previous | Shift+F3 |
| Replace in editor | Ctrl+R |
| Find action | Ctrl+Shift+A |
| Search symbol name | Ctrl+Alt+Shift+N |
| Find in project path | Ctrl+Shift+F |
| Show file structure | Ctrl+F12 |
| Jump to source | F4/Ctrl+Enter |
| Open editor tab in new window | Shift+F4 |
| Close editor tab | Ctrl+F4 |
| Hide active tool window | Shift+Esc |
| Show type hierarchy | Ctrl+H |
| Show method hierarchy | Ctrl+Shift+H |
| Show call hierarchy | Ctrl+Alt+H |
| Fit layout preview to screen | Ctrl+0 |
| Actual size in layout preview | Ctrl+Shift+1 |
| Layout Editor: zoom in | Ctrl++ |
| Layout Editor: zoom out | Ctrl+- |
| Go to super method or class | Ctrl+U |
| Toggle bookmark | F11 |
| Toggle mnemonic bookmark | Ctrl+F11 |
| Go to code block start | Ctrl+[ |
| Go to code block end | Ctrl+] |
| Next or previous highlighted error | F2/Shift+F2 |
| Refactoring |
|---|
| Rename | Shift+F6 |
| Extract variable | Ctrl+Alt+V |
| Extract method | Ctrl+Alt+M |
| Extract field | Ctrl+Alt+F |
| Extract constant | Ctrl+Alt+C |
| Inline | Ctrl+Alt+N |
| Move | F6 |
| Copy by refactoring | F5 |
| Change signature | Ctrl+F6 |
| Extract parameter | Ctrl+Alt+P |
| Debugging |
|---|
| Toggle breakpoint | Ctrl+F8 |
| Step over | F8 |
| Step into | F7 |
| Step out | Shift+F8 |
| Resume program | F9 |
| Evaluate expression | Alt+F8 |
| View breakpoints | Ctrl+Shift+F8 |
| Open Logcat window | Alt+6 |
| Smart step into | Shift+F7 |
| Run to cursor | Alt+F9 |