Android Studio HotKey Cheatsheet

2025 年 1 月 3 日

Android Studio, the official integrated development environment (IDE) for Android app development, offers numerous shortcut keys to enhance productivity. These shortcuts are categorized based on their functionality and are tailored for both Windows and MacOS platforms.

Android Studio Windows Shortcut Keys

General

ShortcutAction
CtrlSSave all
CtrlAltYSynchronize
CtrlShiftF12Minimize or maximize the editor
AltShiftFAdd to favorites
AltShiftIInspect the current file with the current profile
Ctrl`Quick switch the scheme
CtrlAltSOpen the settings dialogue
CtrlAltShiftSOpen the project structure dialogue
CtrlTabSwitch between the tabs and tool window

Navigating and Searching

ShortcutAction
ShiftShiftSearch everything, including code and menus
CtrlFFind
F3Find next
ShiftF3Find previous
CtrlRReplace
CtrlShiftAFind action
CtrlAltShiftNSearch by a symbol name
CtrlNFind class
CtrlShiftNFind file, instead of class
CtrlShiftFFind in path
CtrlF12Open file structure pop-up
AltRight/LeftNavigate between open editor tabs
CtrlEnterJump to source
ShiftF4Open the current editor tab in a new window
CtrlERecently opened files pop-up
CtrlShiftERecently edited files pop-up
CtrlShiftBackspaceGo to last edit location
CtrlF4Close active editor tab
EscReturn to editor window from a tool window
ShiftEscHide active or last active tool window
CtrlGGo to line
CtrlHOpen type hierarchy
CtrlShiftHOpen method hierarchy
CtrlAltHOpen call hierarchy

Writing Code

ShortcutAction
AltInsertGenerate code, e.g. getters, setters, constructors, new class
CtrlOOverride methods
CtrlIImplement methods
CtrlAltTSurround with if...else, try...catch, etc
CtrlYDelete line at caret
Ctrl-Collapse the current code block
Ctrl+Expand the current code block
CtrlShift-Collapse all code blocks
CtrlShift+Expand all code blocks
CtrlDDuplicate the current line or selection
CtrlSpaceBasic code completion
CtrlShiftSpaceSmart code completion, filters the list of methods and variables by expected type
CtrlShiftEnterComplete statement
CtrlQQuick documentation lookup
CtrlPShow parameters for selected method
CtrlBGo to declaration, directly
CtrlAltBGo to implementations
CtrlUGo to super-method or super-class
CtrlShiftIOpen quick definition lookup
Alt1Toggle project tool window visibility
F11Toggle bookmark
CtrlF11Toggle bookmark with mnemonic
Ctrl/Comment or uncomment with line comment
CtrlShift/Comment or uncomment with block comment
CtrlWSelect successively increasing code blocks
CtrlShiftWDecrease current selection to previous state
Ctrl[Move to code block start
Ctrl]Move to code block end
CtrlShift[Select to the code block start
CtrlShift]Select to the code block end
CtrlDelDelete to the end of a word
CtrlBackspaceDelete to the start of a word
CtrlAltOOptimize imports
AltEnterProject quick fix, show intention actions and quick fixes
CtrlAltLReformat code
CtrlAltIAuto-indent lines
TabIndent lines
ShiftTabUnindent lines
CtrlShiftJSmart line join
CtrlEnterSmart line split
ShiftEnterStart new line
F2Next highlighted error
ShiftF2Previous highlighted error

Viewing Layouts

ShortcutAction
Ctrl+Zoom in
Ctrl-Zoom out
Ctrl0Fit to screen
CtrlShift1Actual size

Layout Editor

ShortcutAction
BToggle between Design and Blueprint modes
OToggle between Portrait and Landscaope modes
DToggle devices
RForce refresh
EToggle render errors panel
DelDelete constraints
Ctrl+Zoom in
Ctrl-Zoom out
Ctrl0Zoom to fit
CtrlBGo to XML
CtrlASelect all components
Shift(click)Select multiple components

Navigation Editor

ShortcutAction
Ctrl+Zoom in
Ctrl-Zoom out
Ctrl0Zoom to fit
CtrlBGo to XML
EToggle render errors panel
CtrlGGroup into a nested graph
TabCycle through destinations
CtrlASelect all destinations
Ctrl(click)Select multiple destinations

Build and Run

ShortcutAction
CtrlF9Build
ShiftF10Build and run
CtrlF10Apply changes and restart activity
CtrlAltF10Apply code changes

Debugging

ShortcutAction
ShiftF9Debug
F8Step over
F7Step into
ShiftF7Smart step into
ShiftF8Step out
AltF9Run to cursor
AltF8Evaluate expression
F9Resume program
CtrlF8Toggle breakpoint
CtrlShiftF8View breakpoints

Refactoring

ShortcutAction
F5Copy
F6Move
AltDelSafe delete
ShiftF6Rename
CtrlF6Change signature
CtrlAltNInline
CtrlAltMExtract method
CtrlAltVExtract variable
CtrlAltFExtract field
CtrlAltCExtract constant
CtrlAltPExtract parameter

Version Control

ShortcutAction
CtrlKCommit project to VCS
CtrlTUpdate project from VCS
AltShiftCView recent changes
Alt`Open VCS pop-up

Download Android Studio Windows Shortcut Keys Cheatsheet PDF

We provide a Android Studio Windows Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

Android Studio MacOS Shortcut Keys

Code Editing

Shortcut KeyFunction Description
Command + SpaceBasic code completion
Command + Shift + EnterComplete statement
Command + Option + LReformat code
Command + Option + OOptimize imports
Option + Shift + Up/DownMove statement up/down
Command + DDuplicate line
Command + /Comment/uncomment line
Command + Option + /Add a documentation comment
Command + JInsert live template
Command + Option + TSurround with…
Command + Option + Left/RightExpand/collapse code block
Option + EnterShow intention actions and quick fixes
Command + Option + Shift + UToggle case (upper/lower)

Navigation

Shortcut KeyFunction Description
Command + OFind a class
Command + Shift + OFind a file
Command + Shift + MLocate related files
Control + Command + Left/RightNavigate back/forward
Command + ERecent files
Command + Shift + ERecently edited files
Command + 1 (or 2, 3, etc.)Jump to tool windows
Command + Option + Left/RightJump to last/next edit location
Command + Shift + [/]Navigate between editor tabs
Command + Option + FJump to navigation bar

Debugging

Shortcut KeyFunction Description
Control + F9Resume program
Control + F8Step over
Control + F7Step into
Command + Option + RRun/debug configurations
Command + Option + F8Evaluate expression
Option + Shift + F9Debug last launched program
Command + Option + Shift + F7Force step into
Command + Option + Shift + F8Force step over
Control + Command + PView runtime value of an expression
Command + Option + BreakStop debugging

Search

Shortcut KeyFunction Description
Command + Shift + FFind in path
Command + Shift + RReplace in path
Command + Shift + LFind usages
Command + FFind in file
Command + Option + FFind in path with options
Command + Option + LNavigate to line
Command + GFind next occurrence
Command + Shift + GFind previous occurrence
Command + Option + Shift + F7Highlight usages in file
Command + UShow usage in a file

Refactoring

Shortcut KeyFunction Description
Command + TRefactor this element
Command + Option + Shift + MExtract method
Command + Option + Shift + VExtract variable
Command + Option + Shift + CExtract constant
Command + Option + Shift + FRename
Command + Option + Shift + TChange signature
Command + Option + Shift + DInline variable
Command + Option + Shift + BMove
Command + Option + Shift + USafe delete
Command + Option + Shift + RRefactor this file

Build and Run

Shortcut KeyFunction Description
Command + Option + Shift + MBuild project
Command + Option + Shift + PRebuild project
Command + Option + F10Select and run configuration
Command + RRun current configuration
Command + Option + F11Run current configuration with options
Control + Option + Shift + PRun with coverage

Download Android Studio MacOS Shortcut Keys Cheatsheet PDF

We provide a Android Studio MacOS Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

About Android Studio

Android Studio is developed by Google to provide the best tools for app developers. It supports features like intelligent code editing, debugging, and performance tooling, making it an essential platform for Android development.

Android Studio Official Information

Frequently Asked Questions about Android Studio Shortcut Keys

  1. What is the most commonly used shortcut in Android Studio?
    Basic code completion using Ctrl + Space (Windows) or Command + Space (MacOS).

  2. How can I customize shortcuts in Android Studio?
    Go to File > Settings > Keymap (Windows) or Android Studio > Preferences > Keymap (MacOS).

  3. Are there specific shortcuts for XML files?
    Yes, for example, Ctrl + / (Windows) or Command + / (MacOS) to comment lines in XML.

  4. How to toggle between files?
    Use Ctrl + Tab (Windows) or Command + Tab (MacOS).

  5. What shortcut runs the current project?
    Shift + F10 (Windows) or Control + R (MacOS).

  6. How to open recently used files?
    Ctrl + E (Windows) or Command + E (MacOS).

  7. Is there a shortcut to open the terminal?
    Alt + F12 (Windows) or Option + F12 (MacOS).

Conclusion

Mastering Android Studio shortcuts can significantly streamline your development process. Familiarize yourself with the shortcuts listed here to enhance productivity and focus more on building exceptional Android applications.

5/5 - (2 votes)