Android Studio Linux Shortcuts
| Action | Linux Shortcut |
|---|---|
| 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 |
| 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 |
| 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 |
| Navigate forward | Alt+Right |
| Go to line | Ctrl+G |
| Recent files | Ctrl+E |
| Recently changed files | Ctrl+Shift+E |
| 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 |
| 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 |