Android Studio keyboard shortcuts: complete list for Windows & Mac (2026)
Android Studio keyboard shortcuts are predefined key combinations that trigger IDE actions such as running your app, navigating between files, refactoring code, or debugging without using the mouse. They are built on IntelliJ IDEA’s keymap system (Android Studio is developed by Google on top of JetBrains’ IntelliJ IDEA), which means many shortcuts are shared across JetBrains IDEs like IntelliJ IDEA, PyCharm, and WebStorm.
Android Studio supports over 200 configurable keyboard shortcuts on Windows, Linux, and macOS. Every shortcut can be customised or reassigned via the built-in Keymap editor (File > Settings > Keymap on Windows/Linux, Android Studio > Preferences > Keymap on Mac).
Developers who rely on keyboard shortcuts spend significantly less time on mechanical tasks like file navigation and code formatting time that compounds across a full workday of Android or Kotlin development.
Download the Android Studio shortcuts PDF
The complete Android Studio shortcuts cheat sheet is available as a free PDF download formatted for printing as a desk reference.
Most used Android Studio shortcuts
These are the shortcuts every Android developer should memorise first. They cover the highest-frequency daily actions and deliver the biggest productivity gains immediately.
| Action | Windows / Linux | Mac |
|---|---|---|
| Quick fix / intention actions | Alt + Enter | Option + Enter |
| Basic code completion | Ctrl + Space | Ctrl + Space |
| Search everywhere | Shift twice | Shift twice |
| Reformat code | Ctrl + Alt + L | Cmd + Option + L |
| Build and run | Shift + F10 | Ctrl + R |
| Find | Ctrl + F | Cmd + F |
| Find and replace | Ctrl + R | Cmd + R |
| Go to declaration | Ctrl + B or Ctrl + click | Cmd + B or Cmd + click |
| Find usages | Alt + F7 | Option + F7 |
| Rename (refactor) | Shift + F6 | Shift + F6 |
| Duplicate line | Ctrl + D | Cmd + D |
| Delete line | Ctrl + Y | Cmd + Delete |
| Comment / uncomment | Ctrl + / | Cmd + / |
| Block comment | Ctrl + Shift + / | Cmd + Shift + / |
| Undo | Ctrl + Z | Cmd + Z |
| Redo | Ctrl + Shift + Z | Cmd + Shift + Z |
| Save all | Ctrl + S | Cmd + S |
| Go to line | Ctrl + G | Cmd + L |
| Recent files | Ctrl + E | Cmd + E |
| Find action | Ctrl + Shift + A | Cmd + Shift + A |
| Open terminal | Alt + F12 | Alt + F12 |
| Build (without run) | Ctrl + F9 | Cmd + F9 |
| Optimize imports | Ctrl + Alt + O | Ctrl + Option + O |
| Navigate to file | Ctrl + Shift + N | Cmd + Shift + O |
| Navigate to class | Ctrl + N | Cmd + O |
Navigation shortcuts
Efficient navigation is the foundation of fast Android development. Most developers spend 30–40% of their IDE time moving between files, classes, and code blocks. These shortcuts eliminate that friction entirely.
| Action | Windows / Linux | Mac |
|---|---|---|
| Navigate to class | Ctrl + N | Cmd + O |
| Navigate to file | Ctrl + Shift + N | Cmd + Shift + O |
| Navigate to symbol | Ctrl + Alt + Shift + N | Cmd + Option + O |
| Recent files | Ctrl + E | Cmd + E |
| Recently edited files | Ctrl + Shift + E | Cmd + Shift + E |
| Go to last edit location | Ctrl + Shift + Backspace | Cmd + Shift + Delete |
| Toggle project tool window | Alt + 1 | Cmd + 1 |
| Navigate open tabs | Alt + Right/Left Arrow | Ctrl + Right/Left Arrow |
| Close active tab | Ctrl + F4 | Cmd + W |
| Jump to source | F4 or Ctrl + Enter | F4 or Cmd + Down Arrow |
| Open file structure | Ctrl + F12 | Cmd + F12 |
| Go to line | Ctrl + G | Cmd + L |
Ctrl + N (Windows) / Cmd + O (Mac) supports camel-hump search. To find MainActivity, just type MA Android Studio matches the capitalised letters automatically.
Code navigation
| Action | Windows / Linux | Mac |
|---|---|---|
| Go to declaration | Ctrl + B or Ctrl + click | Cmd + B or Cmd + click |
| Go to implementation | Ctrl + Alt + B | Cmd + Option + B |
| Go to supermethod / superclass | Ctrl + U | Cmd + U |
| Find usages | Alt + F7 | Option + F7 |
| Show call hierarchy | Ctrl + Alt + H | Ctrl + Option + H |
| Open type hierarchy | Ctrl + H | Ctrl + H |
| Open method hierarchy | Ctrl + Shift + H | Cmd + Shift + H |
| Next highlighted error | F2 | F2 |
| Previous highlighted error | Shift + F2 | Shift + F2 |
| Move to code block start | Ctrl + [ | Cmd + Option + [ |
| Move to code block end | Ctrl + ] | Cmd + Option + ] |
| Next method | Alt + Page Down | – |
| Previous method | Alt + Page Up | – |
Search Everywhere (double Shift)
The single most powerful navigation shortcut in Android Studio is pressing Shift twice quickly. This opens the Search Everywhere dialog Android Studio’s universal search that finds classes, files, symbols, settings, and IDE actions from one place.
Use Search Everywhere when:
- You can’t remember which file a class is in
- You want to trigger an IDE action but don’t know the keyboard shortcut
- You need to find a resource file, layout, or drawable by partial name
Other search shortcuts:
| Action | Windows / Linux | Mac |
|---|---|---|
| Search everywhere | Shift twice | Shift twice |
| Find in current file | Ctrl + F | Cmd + F |
| Find in path / project | Ctrl + Shift + F | Cmd + Shift + F |
| Replace in current file | Ctrl + R | Cmd + R |
| Replace in path | Ctrl + Shift + R | Cmd + Shift + R |
| Find action | Ctrl + Shift + A | Cmd + Shift + A |
| Find next | F3 | Cmd + G |
| Find previous | Shift + F3 | Cmd + Shift + G |
Code editing shortcuts
These shortcuts address the mechanical parts of writing Kotlin and Java code completion, generation, line operations, and quick fixes. Mastering these reduces the time between idea and working code.
Code completion
Android Studio has three types of code completion:
| Type | Windows / Linux | Mac | When to use |
|---|---|---|---|
| Basic completion | Ctrl + Space | Ctrl + Space | Variables, methods, class names use this most of the time |
| Smart completion | Ctrl + Shift + Space | Ctrl + Shift + Space | Context-aware filters suggestions to the expected type |
| Statement completion | Ctrl + Shift + Enter | Cmd + Shift + Enter | Closes the current statement with correct brackets, braces, and formatting |
Pressing Ctrl + Space twice shows additional results including private members and non-imported static members useful when you know a method exists but it’s not appearing in the initial list.
Code generation (Ctrl+Alt+Insert / Cmd+N)
Android Studio can auto-generate boilerplate code so you never have to write it by hand.
| Action | Windows / Linux | Mac |
|---|---|---|
| Generate code (constructors, getters, setters, toString, equals/hashCode) | Alt + Insert | Cmd + N |
| Override methods | Ctrl + O | Ctrl + O |
| Implement interface methods | Ctrl + I | Ctrl + I |
| Surround with (if/else, try/catch, etc.) | Ctrl + Alt + T | Cmd + Option + T |
Example: In a Kotlin data class, press Alt + Insert (Windows) / Cmd + N (Mac), then select “equals() and hashCode()” Android Studio generates both methods correctly in seconds.
Line operations
| Action | Windows / Linux | Mac |
|---|---|---|
| Duplicate current line or selection | Ctrl + D | Cmd + D |
| Delete line at cursor | Ctrl + Y | Cmd + Delete |
| Move line up | Shift + Alt + Up | Shift + Option + Up |
| Move line down | Shift + Alt + Down | Shift + Option + Down |
| Join lines | Ctrl + Shift + J | Ctrl + Shift + J |
| Start new line | Shift + Enter | Shift + Enter |
| Expand selection | Ctrl + W | Option + Up |
| Shrink selection | Ctrl + Shift + W | Option + Down |
| Select to code block start | Ctrl + Shift + [ | Cmd + Shift + Option + [ |
| Select to code block end | Ctrl + Shift + ] | Cmd + Shift + Option + ] |
| Collapse / expand code block | Ctrl + minus / Ctrl + plus | Cmd + minus / Cmd + plus |
| Collapse / expand all blocks | Ctrl + Shift + minus / Ctrl + Shift + plus | Cmd + Shift + minus / Cmd + Shift + plus |
Quick fix and intention actions (Alt+Enter)
Alt + Enter (Windows) / Option + Enter (Mac) is the single most important shortcut in Android Studio.
When Android Studio underlines code in red, yellow, or grey, pressing Alt + Enter at the cursor opens the Intentions menu a list of available fixes, improvements, and code transformations. Common uses:
- Add a missing import statement automatically
- Implement all required interface methods at once
- Convert a lambda to an anonymous class (or vice versa)
- Wrap a nullable call in a null-check
- Add a @SuppressWarnings annotation
- Create a missing function from its call site
Other formatting and inspection shortcuts:
| Action | Windows / Linux | Mac |
|---|---|---|
| Quick fix / intention actions | Alt + Enter | Option + Enter |
| Reformat code | Ctrl + Alt + L | Cmd + Option + L |
| Auto-indent lines | Ctrl + Alt + I | Ctrl + Option + I |
| Optimize imports | Ctrl + Alt + O | Ctrl + Option + O |
| Quick documentation | Ctrl + Q | Ctrl + J |
| Show method parameters | Ctrl + P | Cmd + P |
| Quick definition lookup | Ctrl + Shift + I | Cmd + Y |
| Comment line | Ctrl + / | Cmd + / |
| Block comment | Ctrl + Shift + / | Cmd + Shift + / |
| Toggle bookmark | F11 | F3 |
Refactoring shortcuts
Refactoring restructuring code without changing its behaviour is one of the highest-value activities in Android development. Android Studio’s refactoring tools are powered by IntelliJ IDEA’s engine, and all of them are keyboard-accessible.
Rename (Shift+F6)
The shortcut to rename any variable, method, class, or file in Android Studio is Shift + F6 on both Windows and Mac.
Press Shift + F6 with your cursor on any identifier. Android Studio finds every reference across the entire project including Kotlin, Java, XML layouts, and resource files and renames them all simultaneously. This is far safer than Find & Replace because it understands code context.
Extract method, variable, and field
| Action | Windows / Linux | Mac |
|---|---|---|
| Extract method | Ctrl + Alt + M | Cmd + Option + M |
| Extract variable | Ctrl + Alt + V | Cmd + Option + V |
| Extract field | Ctrl + Alt + F | Cmd + Option + F |
| Extract constant | Ctrl + Alt + C | Cmd + Option + C |
| Extract parameter | Ctrl + Alt + P | Cmd + Option + P |
Example: Select a complex expression like user.profile.settings.notifications.enabled, press Ctrl + Alt + V (Windows) / Cmd + Option + V (Mac), name it isNotificationsEnabled Android Studio creates the variable and replaces all occurrences.
Full refactoring shortcut table
| Action | Windows / Linux | Mac |
|---|---|---|
| Rename | Shift + F6 | Shift + F6 |
| Change method signature | Ctrl + F6 | Cmd + F6 |
| Extract method | Ctrl + Alt + M | Cmd + Option + M |
| Extract variable | Ctrl + Alt + V | Cmd + Option + V |
| Extract field | Ctrl + Alt + F | Cmd + Option + F |
| Extract constant | Ctrl + Alt + C | Cmd + Option + C |
| Extract parameter | Ctrl + Alt + P | Cmd + Option + P |
| Inline (method/variable/constant) | Ctrl + Alt + N | Cmd + Option + N |
| Move | F6 | F6 |
| Copy | F5 | F5 |
| Safe delete | Alt + Delete | Cmd + Delete |
Debugging and Logcat shortcuts
Breakpoint shortcuts
A breakpoint pauses execution so you can inspect the state of your app at a specific line of code.
The shortcut to toggle a breakpoint in Android Studio is Ctrl + F8 (Windows/Linux) or Cmd + F8 (Mac). Click in the gutter or press this shortcut while your cursor is on the relevant line.
| Action | Windows / Linux | Mac |
|---|---|---|
| Start debug session | Shift + F9 | Ctrl + D |
| Toggle breakpoint | Ctrl + F8 | Cmd + F8 |
| View all breakpoints | Ctrl + Shift + F8 | Cmd + Shift + F8 |
| Run to cursor | Alt + F9 | Option + F9 |
| Evaluate expression | Alt + F8 | Option + F8 |
| Resume program | F9 | Cmd + Option + R |
Step through code
Once paused at a breakpoint, use these shortcuts to move through execution line by line:
| Action | Windows / Linux | Mac | When to use |
|---|---|---|---|
| Step over | F8 | F8 | Execute the current line, stay at the same level don’t enter method calls |
| Step into | F7 | F7 | Enter the method being called on the current line |
| Smart step into | Shift + F7 | Shift + F7 | Choose which method to step into when multiple are on one line |
| Step out | Shift + F8 | Shift + F8 | Finish the current method and return to the caller |
The workflow: Set a breakpoint with Ctrl + F8, start debug with Shift + F9, then use F8 to step over lines and F7 when you want to inspect what happens inside a specific method.
Logcat and terminal shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Open Logcat | Alt + 6 | Cmd + 6 |
| Open terminal | Alt + F12 | Alt + F12 |
| Open Run window | Shift + F10 (run first) then Alt + 4 | Ctrl + R then Cmd + 4 |
| Hide all tool windows | Ctrl + Shift + F12 | Cmd + Shift + F12 |
| Return to editor from any tool window | Esc | Esc |
The shortcut to open the terminal in Android Studio is Alt + F12 on both Windows and Mac. This opens Android Studio’s built-in terminal, where you can run ADB commands, Gradle tasks, or any shell command without leaving the IDE.
Build and run shortcuts
The shortcut to build and run your app in Android Studio is Shift + F10 on Windows/Linux or Ctrl + R on Mac.
| Action | Windows / Linux | Mac | Notes |
|---|---|---|---|
| Build and run | Shift + F10 | Ctrl + R | Builds project and runs on selected device or emulator |
| Build only (no run) | Ctrl + F9 | Cmd + F9 | Compiles without launching useful for catching errors fast |
| Debug run | Shift + F9 | Ctrl + D | Launches app in debug mode with breakpoints active |
| Apply changes and restart activity | Ctrl + F10 | Ctrl + Cmd + R | Pushes code changes to a running app without full rebuild |
| Apply code changes only | Ctrl + Alt + F10 | Ctrl + Cmd + Shift + R | Pushes method-level changes without restarting the activity |
| Run project tool window | Alt + 4 | Cmd + 4 | Opens the Run output panel |
Apply Changes (Ctrl + F10 / Ctrl + Cmd + R) is one of Android Studio’s most underused shortcuts. It pushes code changes to a running app on a device or emulator in seconds without a full rebuild. It works for most Kotlin and Java changes and is a massive time-saver during iterative UI development.
Android Studio shortcuts for Mac
Mac users get a slightly different keymap because macOS reserves many Ctrl combinations for system use. Here is a consolidated Mac-only quick reference:
| Action | Mac Shortcut |
|---|---|
| Search everywhere | Shift twice |
| Navigate to class | Cmd + O |
| Navigate to file | Cmd + Shift + O |
| Recent files | Cmd + E |
| Go to line | Cmd + L |
| Go to declaration | Cmd + B |
| Find usages | Option + F7 |
| Quick fix | Option + Enter |
| Code completion | Ctrl + Space |
| Reformat code | Cmd + Option + L |
| Duplicate line | Cmd + D |
| Delete line | Cmd + Delete |
| Comment line | Cmd + / |
| Generate code | Cmd + N |
| Surround with | Cmd + Option + T |
| Rename | Shift + F6 |
| Extract method | Cmd + Option + M |
| Extract variable | Cmd + Option + V |
| Build and run | Ctrl + R |
| Build only | Cmd + F9 |
| Debug | Ctrl + D |
| Toggle breakpoint | Cmd + F8 |
| Step over | F8 |
| Step into | F7 |
| Resume | Cmd + Option + R |
| Open Logcat | Cmd + 6 |
| Open terminal | Alt + F12 |
| Hide all windows | Cmd + Shift + F12 |
| Settings / Preferences | Cmd + , |
How to customise Android Studio keymaps
Android Studio lets you fully reassign any shortcut to a key combination you prefer. This is useful if you are migrating from VS Code, Eclipse, or another IDE and want familiar bindings.
Windows / Linux – step by step
- Open File in the top menu bar.
- Click Settings (or press Ctrl + Alt + S).
- In the left panel, navigate to Editor > Keymap.
- Use the search box to find the action you want to remap type the action name, not the current shortcut.
- Right-click the action in the list.
- Select Add Keyboard Shortcut.
- Press your desired key combination in the dialog that appears.
- Click OK. If the shortcut is already in use, Android Studio will warn you and let you reassign or keep both.
Mac – step by step
- Open Android Studio in the top menu bar.
- Click Preferences (or press Cmd + ,).
- Navigate to Editor > Keymap in the left panel.
- Search for the action name in the search box.
- Right-click the action and select Add Keyboard Shortcut.
- Press your desired key combination.
- Click OK.
Preset keymaps available
Android Studio ships with several preset keymaps beyond the default. You can switch between them at the top of the Keymap panel:
- Default – Android Studio’s standard layout (covered throughout this guide)
- Eclipse – matches Eclipse IDE’s key bindings for developers migrating from Eclipse
- Emacs – Emacs-style keybindings
- Visual Studio – matches Visual Studio’s key bindings
- NetBeans – matches NetBeans IDE
Reset shortcuts to default
To reset a single action: right-click the action in the Keymap panel → Reset to Default.
To reset the entire keymap: select the keymap from the dropdown at the top of the Keymap panel → click the Reset button.
Download the Android Studio shortcuts PDF
The complete Android Studio shortcuts cheat sheet is available as a free PDF download formatted for printing as a desk reference.
Frequently asked questions
What is the shortcut to run an app in Android Studio?
Press Shift + F10 on Windows/Linux or Ctrl + R on Mac to build and run your Android app on the selected device or emulator. To run in debug mode, use Shift + F9 (Windows/Linux) or Ctrl + D (Mac).
How do I open the terminal in Android Studio?
Press Alt + F12 on both Windows and Mac to open Android Studio’s built-in terminal. From there you can run ADB commands, Gradle tasks, and shell commands without leaving the IDE.
What does Ctrl+Shift+A do in Android Studio?
Ctrl + Shift + A (Windows) / Cmd + Shift + A (Mac) opens the Find Action dialog. You can type the name of any IDE action like “reformat,” “optimize imports,” or “sync gradle” and execute it directly. It is the fastest way to access any Android Studio feature you do not have memorised as a shortcut.
How do I duplicate a line in Android Studio?
Press Ctrl + D on Windows/Linux or Cmd + D on Mac to duplicate the current line (or selected block of lines) and insert the copy immediately below.
What is the most useful Android Studio shortcut?
Alt + Enter (Windows) / Option + Enter (Mac) is consistently rated the most impactful shortcut by Android developers. It opens Android Studio’s intention actions and quick fixes resolving import errors, suggesting code improvements, and implementing required methods in a single keystroke.
Can I use Vim keybindings in Android Studio?
Yes. Android Studio supports the IdeaVim plugin, which brings full Vim keybindings to the editor. Install it via File > Settings > Plugins > search “IdeaVim”. Once installed, you can use Vim’s normal mode, visual mode, and command mode while still having access to Android Studio’s IDE features.
Are Android Studio shortcuts the same as IntelliJ IDEA shortcuts?
Yes. Android Studio is built on JetBrains’ IntelliJ IDEA platform and uses the same default keymap. The shortcuts listed in this guide apply equally to IntelliJ IDEA, so switching between the two IDEs requires no relearning.
How do I reset Android Studio shortcuts to default?
Go to File > Settings > Editor > Keymap (Windows) or Android Studio > Preferences > Editor > Keymap (Mac). Click the dropdown at the top, select the default keymap, then click the Reset button. This reverts all custom changes to Android Studio’s original defaults.
READ NEXT:





