Android Studio keyboard shortcuts
Android Studio is Google's official IDE for Android development, built on the IntelliJ platform. That heritage means world-class refactoring, navigation, and code generation, all reachable from the keyboard. Knowing the shortcuts is what keeps you in flow through the edit-build-deploy loop to emulators and devices. This cheat sheet covers 77 default shortcuts for Windows and Mac.
General
| Search Everywhere | Double ShiftDouble Shift |
| Find Action | Ctrl+Shift+ACmd+Shift+A |
| Show intention actions / quick fixes | Alt+EnterOption+Enter |
| Open Settings | Ctrl+Alt+SCmd+, |
| Generate code (getters, overrides, ...) | Alt+InsertCmd+N |
| Recent files | Ctrl+ECmd+E |
| Recent locations | Ctrl+Shift+ECmd+Shift+E |
| Go to class | Ctrl+NCmd+O |
| Go to file | Ctrl+Shift+NCmd+Shift+O |
| Go to symbol | Ctrl+Alt+Shift+NCmd+Option+O |
Editing
| Duplicate line or selection | Ctrl+DCmd+D |
| Delete line | Ctrl+YCmd+Backspace |
| Toggle line comment | Ctrl+/Cmd+/ |
| Toggle block comment | Ctrl+Shift+/Cmd+Option+/ |
| Move line up/down | Alt+Shift+Up/DownOption+Shift+Up/Down |
| Move statement up/down | Ctrl+Shift+Up/DownCmd+Shift+Up/Down |
| Reformat code | Ctrl+Alt+LCmd+Option+L |
| Optimize imports | Ctrl+Alt+OCtrl+Option+O |
| Extend selection | Ctrl+WOption+Up |
| Shrink selection | Ctrl+Shift+WOption+Down |
| Join lines | Ctrl+Shift+JCtrl+Shift+J |
| Undo | Ctrl+ZCmd+Z |
| Redo | Ctrl+Shift+ZCmd+Shift+Z |
Multiple Carets
| Add selection for next occurrence | Alt+JCtrl+G |
| Unselect last occurrence | Alt+Shift+JCtrl+Shift+G |
| Select all occurrences | Ctrl+Alt+Shift+JCtrl+Cmd+G |
| Add caret with mouse | Alt+Shift+ClickOption+Shift+Click |
Code Completion & Info
| Basic code completion | Ctrl+SpaceCtrl+Space |
| Smart type-matching completion | Ctrl+Shift+SpaceCtrl+Shift+Space |
| Parameter info | Ctrl+PCmd+P |
| Quick documentation | Ctrl+QF1 |
| Quick definition | Ctrl+Shift+IOption+Space |
Navigation
| Go to declaration | Ctrl+BCmd+B |
| Go to implementation | Ctrl+Alt+BCmd+Option+B |
| Go to super method/class | Ctrl+UCmd+U |
| Find usages | Alt+F7Option+F7 |
| File structure popup | Ctrl+F12Cmd+F12 |
| Go to line | Ctrl+GCmd+L |
| Navigate back | Ctrl+Alt+LeftCmd+[ |
| Navigate forward | Ctrl+Alt+RightCmd+] |
| Go to last edit location | Ctrl+Shift+BackspaceCmd+Shift+Backspace |
| Next highlighted error | F2F2 |
| Previous highlighted error | Shift+F2Shift+F2 |
| Type hierarchy | Ctrl+HCtrl+H |
Refactoring
| Rename | Shift+F6Shift+F6 |
| Refactor This menu | Ctrl+Alt+Shift+TCtrl+T |
| Extract method | Ctrl+Alt+MCmd+Option+M |
| Extract variable | Ctrl+Alt+VCmd+Option+V |
| Extract field | Ctrl+Alt+FCmd+Option+F |
| Extract constant | Ctrl+Alt+CCmd+Option+C |
| Extract parameter | Ctrl+Alt+PCmd+Option+P |
| Move | F6F6 |
Find & Replace
| Find in file | Ctrl+FCmd+F |
| Replace in file | Ctrl+RCmd+R |
| Find next | F3Cmd+G |
| Find previous | Shift+F3Cmd+Shift+G |
| Find in path (whole project) | Ctrl+Shift+FCmd+Shift+F |
| Replace in path | Ctrl+Shift+RCmd+Shift+R |
Run, Build & Debug
| Run app | Shift+F10Ctrl+R |
| Debug app | Shift+F9Ctrl+D |
| Build project | Ctrl+F9Cmd+F9 |
| Stop | Ctrl+F2Cmd+F2 |
| Toggle line breakpoint | Ctrl+F8Cmd+F8 |
| View breakpoints | Ctrl+Shift+F8Cmd+Shift+F8 |
| Step over | F8F8 |
| Step into | F7F7 |
| Step out | Shift+F8Shift+F8 |
| Resume program | F9Cmd+Option+R |
| Run to cursor | Alt+F9Option+F9 |
| Evaluate expression | Alt+F8Option+F8 |
Tool Windows & VCS
| Project tool window | Alt+1Cmd+1 |
| Terminal | Alt+F12Option+F12 |
| Hide all tool windows | Ctrl+Shift+F12Cmd+Shift+F12 |
| Commit changes | Ctrl+KCmd+K |
| Push commits | Ctrl+Shift+KCmd+Shift+K |
| Update project (pull) | Ctrl+TCmd+T |
| VCS operations popup | Alt+`Ctrl+V |
Put your top Android Studio shortcuts on real keys
The five Android Studio actions most worth binding to a physical macropad key:
Shift+F10Ctrl+R Run app Deploying to the emulator is the loop you repeat all day; one physical key removes the friction.
Ctrl+Alt+LCmd+Option+L Reformat code Formatting before every commit becomes a single mechanical tap.
Double ShiftDouble Shift Search Everywhere The universal entry point to files, symbols, and actions deserves hardware access.
Shift+F6Shift+F6 Rename Safe project-wide renames are the refactor you reach for most.
Ctrl+F8Cmd+F8 Toggle line breakpoint Setting and clearing breakpoints repeatedly during debugging is perfect macropad work.
I hand-build small-batch programmable macropads (QMK/VIA) in Barcelona. One press, any shortcut, any app.
Android Studio shortcut FAQs
What is the most important shortcut in Android Studio?
Double Shift (Search Everywhere) and Ctrl+Shift+A / Cmd+Shift+A (Find Action). Between them you can reach any file, symbol, setting, or command without knowing its dedicated shortcut.
How do I run my app on the emulator with the keyboard?
Press Shift+F10 on Windows or Ctrl+R on Mac to build and run the current configuration on the selected device or emulator. Shift+F9 / Ctrl+D does the same with the debugger attached.
How do I auto-format Kotlin or Java code in Android Studio?
Press Ctrl+Alt+L on Windows or Cmd+Option+L on Mac to reformat the file or selection. Ctrl+Alt+O / Ctrl+Option+O cleans up unused imports.
Are Android Studio shortcuts the same as IntelliJ IDEA?
Yes. Android Studio is built on the IntelliJ platform and ships the same default keymap, plus Android-specific run and Logcat tooling. IntelliJ muscle memory transfers directly.
How do I rename a variable or class safely everywhere?
Put the cursor on the symbol and press Shift+F6. The rename refactoring updates every usage across the project, including XML references for Android resources.