Android Studio keyboard shortcuts

Android Studio is Google's IDE for building Android apps, based on IntelliJ IDEA. The keys open tool windows, find and navigate code, generate and refactor it, build, run, and debug, and work with version control and the layout editors.

Windows, macOS, Linux · 133 shortcuts

Tool windows

Open the most-used Android Studio tool windows, return focus to the editor, or clear the workspace by hiding every tool window at once.

ActionShortcuts
Open the Project tool window
Windows / LinuxAlt + 1
macOSCmd + 1
Open the Version Control tool window
Windows / LinuxAlt + 9
macOSCmd + 9
Open the Run tool window
Windows / LinuxShift + F10
macOSControl + R
Open the Debug tool window
Windows / LinuxShift + F9
macOSControl + D
Open the Logcat tool window
Windows / LinuxAlt + 6
macOSCmd + 6
Return focus to the editor
Windows / macOS / LinuxEsc
Hide all tool windows
Windows / LinuxControl + Shift + F12
macOSCmd + Shift + F12

General IDE actions

Save and synchronize the project, inspect the current file, open settings and project structure, and switch focus between tabs and tool windows.

ActionShortcuts
Save all
Windows / LinuxControl + S
macOSCmd + S
Synchronize
Windows / LinuxControl + Alt + Y
macOSCmd + Option + Y
Maximize or minimize the editor
Windows / LinuxControl + Shift + F12
macOSControl + Cmd + F12
Add the selected item to Favorites
Windows / LinuxAlt + Shift + F
macOSOption + Shift + F
Inspect the current file with the current profile
Windows / LinuxAlt + Shift + I
macOSOption + Shift + I
Open Quick Switch Scheme
Windows / macOS / LinuxControl + `
Open the Settings dialog
Windows / LinuxControl + Alt + S
macOSCmd + ,
Open Project Structure
Windows / LinuxControl + Alt + Shift + S
macOSCmd + ;
Switch between tabs and tool windows
Windows / macOS / LinuxControl + Tab

Layout and Navigation editors

Change preview modes and device orientation, refresh rendering, zoom the canvas, open XML, and navigate components or destinations in Android design tools.

ActionShortcuts
Zoom in within a visual layout
Windows / LinuxControl + +
macOSCmd + +
Zoom out within a visual layout
Windows / LinuxControl + -
macOSCmd + -
Fit a visual layout to the available space
Windows / LinuxControl + 0
macOSCmd + 0
Show a visual layout at actual size
Windows / LinuxControl + Shift + 1
macOSCmd + Shift + 1
Toggle Layout Editor Design and Blueprint modes
Windows / macOS / LinuxB
Toggle portrait and landscape modes
Windows / macOS / LinuxO
Toggle Layout Editor devices
Windows / macOS / LinuxD
Force a Layout Editor refresh
Windows / macOS / LinuxR
Toggle the Layout Editor render-errors panel
Windows / macOS / LinuxE
Delete selected constraints
Windows / macOS / LinuxDelete
Zoom in within the Layout Editor
Windows / LinuxControl + +
macOSCmd + +
Zoom out within the Layout Editor
Windows / LinuxControl + -
macOSCmd + -
Zoom the Layout Editor to fit
Windows / LinuxControl + 0
macOSCmd + 0
Go from the Layout Editor to XML
Windows / LinuxControl + B
macOSCmd + B
Select all Layout Editor components
Windows / LinuxControl + A
macOSCmd + A

Code generation and editing

Generate and implement methods, complete and inspect code, navigate declarations, reshape selections, format lines, manage imports, and move between errors.

ActionShortcuts
Generate code
Windows / LinuxAlt + Insert
macOSCmd + N
Override methods
Windows / macOS / LinuxControl + O
Implement methods
Windows / macOS / LinuxControl + I
Surround the selection with a language construct
Windows / LinuxControl + Alt + T
macOSCmd + Option + T
Delete the line at the caret
Windows / LinuxControl + Y
macOSCmd + Delete
Duplicate the current line or selection
Windows / LinuxControl + D
macOSCmd + D
Show basic code completion
Windows / macOS / LinuxControl + Space
Show smart code completion
Windows / macOS / LinuxControl + Shift + Space
Complete the current statement
Windows / LinuxControl + Shift + Enter
macOSCmd + Shift + Enter
Open quick documentation
Windows / LinuxControl + Q
macOSControl + J
Show parameters for the selected method
Windows / LinuxControl + P
macOSCmd + P
Go to the declaration
Windows / LinuxControl + B
macOSCmd + B
Go to implementations
Windows / LinuxControl + Alt + B
macOSCmd + Option + B
Go to the supermethod or superclass
Windows / LinuxControl + U
macOSCmd + U
Open quick definition
Windows / LinuxControl + Shift + I
macOSCmd + Y
Toggle the Project tool window
Windows / LinuxAlt + 1
macOSCmd + 1
Toggle a bookmark
Windows / LinuxF11
macOSF3
Toggle a bookmark with a mnemonic
Windows / LinuxControl + F11
macOSOption + F3
Comment or uncomment with a line comment
Windows / LinuxControl + /
macOSCmd + /
Comment or uncomment with a block comment
Windows / LinuxControl + Shift + /
macOSCmd + Shift + /
Select successively larger code blocks
Windows / LinuxControl + W
macOSOption + Up
Shrink the selection to its previous state
Windows / LinuxControl + Shift + W
macOSOption + Down
Move to the start of the code block
Windows / LinuxControl + [
macOSOption + Cmd + [
Move to the end of the code block
Windows / LinuxControl + ]
macOSOption + Cmd + ]
Select through the start of the code block
Windows / LinuxControl + Shift + [
macOSOption + Cmd + Shift + [
Select through the end of the code block
Windows / LinuxControl + Shift + ]
macOSOption + Cmd + Shift + ]
Delete through the end of the word
Windows / LinuxControl + Delete
macOSOption + Delete
Delete through the start of the word
Windows / LinuxControl + Backspace
macOSOption + Delete
Optimize imports
Windows / LinuxControl + Alt + O
macOSControl + Option + O
Show intention actions and quick fixes
Windows / LinuxAlt + Enter
macOSOption + Enter
Reformat code
Windows / LinuxControl + Alt + L
macOSCmd + Option + L
Auto-indent lines
Windows / LinuxControl + Alt + I
macOSControl + Option + I
Indent lines
Windows / macOS / LinuxTab
Unindent lines
Windows / macOS / LinuxShift + Tab
Join lines intelligently
Windows / macOS / LinuxControl + Shift + J
Split the current line intelligently
Windows / LinuxControl + Enter
macOSCmd + Enter
Start a new line
Windows / macOS / LinuxShift + Enter
Collapse or expand the current code block
Windows / LinuxControl + -orControl + +
macOSCmd + -orCmd + +
Collapse or expand all code blocks
Windows / LinuxControl + Shift + -orControl + Shift + +
macOSCmd + Shift + -orCmd + Shift + +
Move to the next or previous highlighted error
Windows / macOS / LinuxF2orShift + F2

Build and run

Build the project, run the selected configuration, or send code and resource changes to a running Android app with the documented apply commands.

ActionShortcuts
Build the project
Windows / LinuxControl + F9
macOSCmd + F9
Build and run
Windows / LinuxShift + F10
macOSControl + R
Apply changes and restart the activity
Windows / LinuxControl + F10
macOSControl + Cmd + R
Apply code changes
Windows / LinuxControl + Alt + F10
macOSControl + Cmd + Shift + R

Debugging

Start a debug session, step through program execution, run to the cursor, inspect an expression, resume execution, and manage breakpoints.

ActionShortcuts
Debug the selected configuration
Windows / LinuxShift + F9
macOSControl + D
Step over
Windows / macOS / LinuxF8
Step into
Windows / macOS / LinuxF7
Smart step into
Windows / macOS / LinuxShift + F7
Step out
Windows / macOS / LinuxShift + F8
Run to the cursor
Windows / LinuxAlt + F9
macOSOption + F9
Evaluate an expression
Windows / LinuxAlt + F8
macOSOption + F8
Resume the program
Windows / LinuxF9
macOSCmd + Option + R
Toggle a breakpoint
Windows / LinuxControl + F8
macOSCmd + F8
View breakpoints
Windows / LinuxControl + Shift + F8
macOSCmd + Shift + F8

Refactoring

Copy, move, rename, or safely delete code and extract reusable methods, variables, fields, constants, and parameters through IDE-aware refactors.

ActionShortcuts
Copy a code element
Windows / macOS / LinuxF5
Move a code element
Windows / macOS / LinuxF6
Safely delete a code element
Windows / LinuxAlt + Delete
macOSCmd + Delete
Rename a code element
Windows / macOS / LinuxShift + F6
Change a method signature
Windows / LinuxControl + F6
macOSCmd + F6
Inline the selected element
Windows / LinuxControl + Alt + N
macOSCmd + Option + N
Extract a method
Windows / LinuxControl + Alt + M
macOSCmd + Option + M
Extract a variable
Windows / LinuxControl + Alt + V
macOSCmd + Option + V
Extract a field
Windows / LinuxControl + Alt + F
macOSCmd + Option + F
Extract a constant
Windows / LinuxControl + Alt + C
macOSCmd + Option + C
Extract a parameter
Windows / LinuxControl + Alt + P
macOSCmd + Option + P

Version control and local history

Commit or update the project, review recent changes, and open the version-control operations popup from the default Android Studio keymap.

ActionShortcuts
Commit the project to version control
Windows / LinuxControl + K
macOSCmd + K
Update the project from version control
Windows / LinuxControl + T
macOSCmd + T
View recent changes
Windows / LinuxAlt + Shift + C
macOSOption + Shift + C
Open the version-control operations popup
Windows / LinuxAlt + `
macOSControl + V

Source

Android Studio keyboard shortcuts · Checked

Default Android Studio keymaps from Google's reference updated March 6, 2026 and checked August 31, 2026. Android Studio supports preset and custom keymaps, which can replace these defaults. Mouse-only gestures and modifier-plus-pointer alternatives are omitted.

Make a printable Android Studio sheet