
Essential Android Studio Keyboard Shortcuts
Posted at: 2026.9.30
Here is a roundup of the best keyboard shortcuts for Android Studio, the de facto standard for Android app development. From toggling tool windows and editor actions like code completion, to jumping to definitions, refactoring, building, and debugging—this guide covers the key bindings that will dramatically speed up your daily workflow.
Code Editing & Completion
Most of your time in Android Studio is spent writing and editing code. Learning these editor and code completion shortcuts first will eliminate the tiny, repetitive mouse movements that slow you down, instantly speeding up your workflow.
Here are the ones you should master first:
- Basic code completion:
Ctrl + Space - Smart code completion:
Ctrl + Option/Alt + Space - Show intention actions and quick-fixes:
Option/Alt + Enter - Reformat code:
Ctrl + Option/Alt + L - Optimize imports:
Ctrl + Option/Alt + O - Duplicate line:
Ctrl + D - Delete line:
Ctrl + Y - Toggle comment:
Ctrl + / - Collapse/Expand code block:
Ctrl + .(orCtrl + -,Ctrl + +)
Once you have these down, moving on to the "jump" shortcuts will drastically cut down the time you spend searching for code, boosting your speed even further.
| Action | Shortcut |
|---|---|
| Generate Code | AltInsert |
| Override Methods | CtrlO |
| Implement Methods | CtrlI |
| Surround With | CtrlAltT |
| Delete Line at Caret | CtrlY |
| Collapse Code Block | Ctrl- |
| Expand Code Block | Ctrl+ |
| Collapse All Code Blocks | CtrlShift- |
| Expand All Code Blocks | CtrlShift+ |
| Duplicate Line or Selection | CtrlD |
| Basic Code Completion | CtrlSpace |
| Smart Code Completion | CtrlShiftSpace |
| Complete Statement | CtrlShiftEnter |
| Quick Documentation | CtrlQ |
| Parameter Info | CtrlP |
| Go to Declaration | CtrlB |
| Go to Implementation | CtrlAltB |
| Go to Super-Method | CtrlU |
| Quick Definition | CtrlShiftI |
| Comment with Line Comment | Ctrl/ |
| Comment with Block Comment | CtrlShift/ |
| Extend Selection | CtrlW |
| Shrink Selection | CtrlShiftW |
| Optimize Imports | CtrlAltO |
| Show Intent Actions & Quick-Fix | AltEnter |
| Reformat Code | CtrlAltL |
| Auto-Indent Lines | CtrlAltI |
| Smart Line Join | CtrlShiftJ |
| Start New Line | ShiftEnter |
Navigation & Search
As your project grows, instantly finding the right code or resource across a massive codebase without getting lost becomes key to keeping your momentum.
Android Studio comes with powerful navigation and search shortcuts. You don't need to memorize all of them at once—start by replacing your most frequently used menu clicks with these keyboard equivalents.
We highly recommend starting with the incredibly powerful Search Everywhere (Double Shift) and Find Action (Ctrl + Shift + A) to look up commands and settings.
Using shortcuts like Navigate to Class (Ctrl + N), File (Ctrl + Shift + N), Declaration (F4), and Recent Files (Ctrl + E) lets you move seamlessly between files without breaking your train of thought, completely bypassing the need to dig through file trees with your mouse.
| Action | Shortcut |
|---|---|
| Search Everywhere | ShiftShift |
| Find in File | CtrlF |
| Find Next | F3 |
| Find Previous | ShiftF3 |
| Replace in File | CtrlR |
| Find Action | CtrlShiftA |
| Navigate to Symbol | CtrlShiftAltN |
| Navigate to Class | CtrlN |
| Navigate to File | CtrlShiftN |
| Find in Path | CtrlShiftF |
| File Structure Dialog | CtrlF12 |
| Next Editor Tab | Alt→ |
| Jump to Source | F4 |
| Recent Files Dialog | CtrlE |
| Recently Changed Files | CtrlShiftE |
| Navigate to Last Edit Location | CtrlShiftBackspace |
| Go to Line | CtrlG |
| Type Hierarchy | CtrlH |
| Method Hierarchy | CtrlShiftH |
| Call Hierarchy | CtrlAltH |
Tool Windows
Next up are the tool window shortcuts.
You might not use these as constantly as the editor shortcuts, but tool window buttons live on the far edges of your screen. Reaching for the mouse takes time. Memorizing these will save you a surprising amount of frustration.
| Action | Shortcut |
|---|---|
| Project Tool Window | Alt1 |
| Version Control Tool Window | Alt9 |
| Logcat Tool Window | Alt6 |
| Return to Editor | Esc |
| Hide All Tool Windows | CtrlShiftF12 |
Build, Run, & Debug
These shortcuts will help you run through your build and debug cycles as fast as possible.
Triggering Make Project (Ctrl + F9), Run (Shift + F10), and Debug (Shift + F9) directly from your keyboard lets you instantly verify UI and logic changes.
Once you're in a debug session, keeping your hands on the keyboard for Toggle Breakpoint (Ctrl + F8), Step Over (F8), Step Into (F7), Run to Cursor (Alt + F9), and Evaluate Expression (Alt + F8) keeps your debugging flow smooth and uninterrupted.
| Action | Shortcut |
|---|---|
| Build Project | CtrlF9 |
| Apply Changes and Restart Activity | CtrlF10 |
| Step Over | F8 |
| Step Into | F7 |
| Smart Step Into | ShiftF7 |
| Step Out | ShiftF8 |
| Run to Cursor | AltF9 |
| Evaluate Expression | AltF8 |
| Resume Program | F9 |
| Toggle Line Breakpoint | CtrlF8 |
| View Breakpoints | CtrlShiftF8 |
| Run App | ShiftF10 |
| Debug App | ShiftF9 |
Refactoring
Use these shortcuts to restructure and improve your code design quickly and safely.
Commands like Rename (Shift + F6) and Safe Delete (Alt + Delete) let you clean up and reorganize variables and functions without breaking references across your project.
Mastering the extraction shortcuts—Extract Method (Ctrl + Alt + M), Variable (Ctrl + Alt + V), and Constant (Ctrl + Alt + C)—helps prevent bloated logic and keeps your Kotlin/Java code clean and maintainable.
Just keep in mind that some of these actions affect your entire codebase, so double-check the preview dialogs until you get the hang of them.
| Action | Shortcut |
|---|---|
| Copy Class/File | F5 |
| Move | F6 |
| Safe Delete | AltDelete |
| Rename | ShiftF6 |
| Change Signature | CtrlF6 |
| Inline | CtrlAltN |
| Extract Method | CtrlAltM |
| Extract Variable | CtrlAltV |
| Extract Field | CtrlAltF |
| Extract Constant | CtrlAltC |
| Extract Parameter | CtrlAltP |
Version Control & Settings
These shortcuts cover IDE settings and version control systems like Git.
You'll use Git commands constantly, so learning these is definitely worth the effort.
Opening the Commit window to check diffs (Ctrl + K) or pulling changes via Update Project (Ctrl + T) right from the IDE means you won’t have to switch back and forth to your terminal or external GUI tool nearly as often.
Being able to quickly open Settings (Ctrl + Alt + S), Project Structure, or Sync Project with Gradle Files (Ctrl + Alt + Y) makes troubleshooting SDK and dependency issues much smoother as well.
| Action | Shortcut |
|---|---|
| Commit to VCS | CtrlK |
| Update Project from VCS | CtrlT |
| View Recent Changes | ShiftAltC |
| Save All | CtrlS |
| Sync Project | CtrlAltY |
| Open Settings Dialog | CtrlAltS |
| Open Project Structure Dialog | CtrlShiftAltS |