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.

ActionWindows / LinuxMac
Quick fix / intention actionsAlt + EnterOption + Enter
Basic code completionCtrl + SpaceCtrl + Space
Search everywhereShift twiceShift twice
Reformat codeCtrl + Alt + LCmd + Option + L
Build and runShift + F10Ctrl + R
FindCtrl + FCmd + F
Find and replaceCtrl + RCmd + R
Go to declarationCtrl + B or Ctrl + clickCmd + B or Cmd + click
Find usagesAlt + F7Option + F7
Rename (refactor)Shift + F6Shift + F6
Duplicate lineCtrl + DCmd + D
Delete lineCtrl + YCmd + Delete
Comment / uncommentCtrl + /Cmd + /
Block commentCtrl + Shift + /Cmd + Shift + /
UndoCtrl + ZCmd + Z
RedoCtrl + Shift + ZCmd + Shift + Z
Save allCtrl + SCmd + S
Go to lineCtrl + GCmd + L
Recent filesCtrl + ECmd + E
Find actionCtrl + Shift + ACmd + Shift + A
Open terminalAlt + F12Alt + F12
Build (without run)Ctrl + F9Cmd + F9
Optimize importsCtrl + Alt + OCtrl + Option + O
Navigate to fileCtrl + Shift + NCmd + Shift + O
Navigate to classCtrl + NCmd + 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.

ActionWindows / LinuxMac
Navigate to classCtrl + NCmd + O
Navigate to fileCtrl + Shift + NCmd + Shift + O
Navigate to symbolCtrl + Alt + Shift + NCmd + Option + O
Recent filesCtrl + ECmd + E
Recently edited filesCtrl + Shift + ECmd + Shift + E
Go to last edit locationCtrl + Shift + BackspaceCmd + Shift + Delete
Toggle project tool windowAlt + 1Cmd + 1
Navigate open tabsAlt + Right/Left ArrowCtrl + Right/Left Arrow
Close active tabCtrl + F4Cmd + W
Jump to sourceF4 or Ctrl + EnterF4 or Cmd + Down Arrow
Open file structureCtrl + F12Cmd + F12
Go to lineCtrl + GCmd + 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

ActionWindows / LinuxMac
Go to declarationCtrl + B or Ctrl + clickCmd + B or Cmd + click
Go to implementationCtrl + Alt + BCmd + Option + B
Go to supermethod / superclassCtrl + UCmd + U
Find usagesAlt + F7Option + F7
Show call hierarchyCtrl + Alt + HCtrl + Option + H
Open type hierarchyCtrl + HCtrl + H
Open method hierarchyCtrl + Shift + HCmd + Shift + H
Next highlighted errorF2F2
Previous highlighted errorShift + F2Shift + F2
Move to code block startCtrl + [Cmd + Option + [
Move to code block endCtrl + ]Cmd + Option + ]
Next methodAlt + Page Down
Previous methodAlt + 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:

ActionWindows / LinuxMac
Search everywhereShift twiceShift twice
Find in current fileCtrl + FCmd + F
Find in path / projectCtrl + Shift + FCmd + Shift + F
Replace in current fileCtrl + RCmd + R
Replace in pathCtrl + Shift + RCmd + Shift + R
Find actionCtrl + Shift + ACmd + Shift + A
Find nextF3Cmd + G
Find previousShift + F3Cmd + 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:

TypeWindows / LinuxMacWhen to use
Basic completionCtrl + SpaceCtrl + SpaceVariables, methods, class names use this most of the time
Smart completionCtrl + Shift + SpaceCtrl + Shift + SpaceContext-aware filters suggestions to the expected type
Statement completionCtrl + Shift + EnterCmd + Shift + EnterCloses 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.

ActionWindows / LinuxMac
Generate code (constructors, getters, setters, toString, equals/hashCode)Alt + InsertCmd + N
Override methodsCtrl + OCtrl + O
Implement interface methodsCtrl + ICtrl + I
Surround with (if/else, try/catch, etc.)Ctrl + Alt + TCmd + 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

ActionWindows / LinuxMac
Duplicate current line or selectionCtrl + DCmd + D
Delete line at cursorCtrl + YCmd + Delete
Move line upShift + Alt + UpShift + Option + Up
Move line downShift + Alt + DownShift + Option + Down
Join linesCtrl + Shift + JCtrl + Shift + J
Start new lineShift + EnterShift + Enter
Expand selectionCtrl + WOption + Up
Shrink selectionCtrl + Shift + WOption + Down
Select to code block startCtrl + Shift + [Cmd + Shift + Option + [
Select to code block endCtrl + Shift + ]Cmd + Shift + Option + ]
Collapse / expand code blockCtrl + minus / Ctrl + plusCmd + minus / Cmd + plus
Collapse / expand all blocksCtrl + Shift + minus / Ctrl + Shift + plusCmd + 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:

ActionWindows / LinuxMac
Quick fix / intention actionsAlt + EnterOption + Enter
Reformat codeCtrl + Alt + LCmd + Option + L
Auto-indent linesCtrl + Alt + ICtrl + Option + I
Optimize importsCtrl + Alt + OCtrl + Option + O
Quick documentationCtrl + QCtrl + J
Show method parametersCtrl + PCmd + P
Quick definition lookupCtrl + Shift + ICmd + Y
Comment lineCtrl + /Cmd + /
Block commentCtrl + Shift + /Cmd + Shift + /
Toggle bookmarkF11F3

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

ActionWindows / LinuxMac
Extract methodCtrl + Alt + MCmd + Option + M
Extract variableCtrl + Alt + VCmd + Option + V
Extract fieldCtrl + Alt + FCmd + Option + F
Extract constantCtrl + Alt + CCmd + Option + C
Extract parameterCtrl + Alt + PCmd + 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

ActionWindows / LinuxMac
RenameShift + F6Shift + F6
Change method signatureCtrl + F6Cmd + F6
Extract methodCtrl + Alt + MCmd + Option + M
Extract variableCtrl + Alt + VCmd + Option + V
Extract fieldCtrl + Alt + FCmd + Option + F
Extract constantCtrl + Alt + CCmd + Option + C
Extract parameterCtrl + Alt + PCmd + Option + P
Inline (method/variable/constant)Ctrl + Alt + NCmd + Option + N
MoveF6F6
CopyF5F5
Safe deleteAlt + DeleteCmd + 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.

ActionWindows / LinuxMac
Start debug sessionShift + F9Ctrl + D
Toggle breakpointCtrl + F8Cmd + F8
View all breakpointsCtrl + Shift + F8Cmd + Shift + F8
Run to cursorAlt + F9Option + F9
Evaluate expressionAlt + F8Option + F8
Resume programF9Cmd + Option + R

Step through code

Once paused at a breakpoint, use these shortcuts to move through execution line by line:

ActionWindows / LinuxMacWhen to use
Step overF8F8Execute the current line, stay at the same level don’t enter method calls
Step intoF7F7Enter the method being called on the current line
Smart step intoShift + F7Shift + F7Choose which method to step into when multiple are on one line
Step outShift + F8Shift + F8Finish 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

ActionWindows / LinuxMac
Open LogcatAlt + 6Cmd + 6
Open terminalAlt + F12Alt + F12
Open Run windowShift + F10 (run first) then Alt + 4Ctrl + R then Cmd + 4
Hide all tool windowsCtrl + Shift + F12Cmd + Shift + F12
Return to editor from any tool windowEscEsc

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.

ActionWindows / LinuxMacNotes
Build and runShift + F10Ctrl + RBuilds project and runs on selected device or emulator
Build only (no run)Ctrl + F9Cmd + F9Compiles without launching useful for catching errors fast
Debug runShift + F9Ctrl + DLaunches app in debug mode with breakpoints active
Apply changes and restart activityCtrl + F10Ctrl + Cmd + RPushes code changes to a running app without full rebuild
Apply code changes onlyCtrl + Alt + F10Ctrl + Cmd + Shift + RPushes method-level changes without restarting the activity
Run project tool windowAlt + 4Cmd + 4Opens 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:

ActionMac Shortcut
Search everywhereShift twice
Navigate to classCmd + O
Navigate to fileCmd + Shift + O
Recent filesCmd + E
Go to lineCmd + L
Go to declarationCmd + B
Find usagesOption + F7
Quick fixOption + Enter
Code completionCtrl + Space
Reformat codeCmd + Option + L
Duplicate lineCmd + D
Delete lineCmd + Delete
Comment lineCmd + /
Generate codeCmd + N
Surround withCmd + Option + T
RenameShift + F6
Extract methodCmd + Option + M
Extract variableCmd + Option + V
Build and runCtrl + R
Build onlyCmd + F9
DebugCtrl + D
Toggle breakpointCmd + F8
Step overF8
Step intoF7
ResumeCmd + Option + R
Open LogcatCmd + 6
Open terminalAlt + F12
Hide all windowsCmd + Shift + F12
Settings / PreferencesCmd + ,

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

  1. Open File in the top menu bar.
  2. Click Settings (or press Ctrl + Alt + S).
  3. In the left panel, navigate to Editor > Keymap.
  4. Use the search box to find the action you want to remap type the action name, not the current shortcut.
  5. Right-click the action in the list.
  6. Select Add Keyboard Shortcut.
  7. Press your desired key combination in the dialog that appears.
  8. 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

  1. Open Android Studio in the top menu bar.
  2. Click Preferences (or press Cmd + ,).
  3. Navigate to Editor > Keymap in the left panel.
  4. Search for the action name in the search box.
  5. Right-click the action and select Add Keyboard Shortcut.
  6. Press your desired key combination.
  7. 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:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button