Skip to content

Android Studio Keyboard Shortcuts

Keyboard Shortcuts

General

ShortcutAction
Ctrl SSave all
Ctrl Alt YSynchronize
Ctrl Shift F12Minimize or maximize the editor
Alt Shift FAdd to favorites
Alt Shift IInspect the current file with the current profile
Ctrl `Quick switch the scheme
Ctrl Alt SOpen the settings dialogue
Ctrl Alt Shift SOpen the project structure dialogue
Ctrl TabSwitch between the tabs and tool window

{.shortcuts}

ShortcutAction
Shift ShiftSearch everything, including code and menus
Ctrl FFind
F3Find next
Shift F3Find previous
Ctrl RReplace
Ctrl Shift AFind action
Ctrl Alt Shift NSearch by a symbol name
Ctrl NFind class
Ctrl Shift NFind file, instead of class
Ctrl Shift FFind in path
Ctrl F12Open file structure pop-up
Alt Right/LeftNavigate between open editor tabs
Ctrl EnterJump to source
Shift F4Open the current editor tab in a new window
Ctrl ERecently opened files pop-up
Ctrl Shift ERecently edited files pop-up
Ctrl Shift BackspaceGo to last edit location
Ctrl F4Close active editor tab
EscReturn to editor window from a tool window
Shift EscHide active or last active tool window
Ctrl GGo to line
Ctrl HOpen type hierarchy
Ctrl Shift HOpen method hierarchy
Ctrl Alt HOpen call hierarchy

{.shortcuts}

Writing Code {.row-span-4}

ShortcutAction
Alt InsertGenerate code, e.g. getters, setters, constructors, new class
Ctrl OOverride methods
Ctrl IImplement methods
Ctrl Alt TSurround with if…else, try…catch, etc
Ctrl YDelete line at caret
Ctrl -Collapse the current code block
Ctrl +Expand the current code block
Ctrl Shift -Collapse all code blocks
Ctrl Shift +Expand all code blocks
Ctrl DDuplicate the current line or selection
Ctrl SpaceBasic code completion
Ctrl Shift SpaceSmart code completion, filters the list of methods and variables by expected type
Ctrl Shift EnterComplete statement
Ctrl QQuick documentation lookup
Ctrl PShow parameters for selected method
Ctrl BGo to declaration, directly
Ctrl Alt BGo to implementations
Ctrl UGo to super-method or super-class
Ctrl Shift IOpen quick definition lookup
Alt 1Toggle project tool window visibility
F11Toggle bookmark
Ctrl F11Toggle bookmark with mnemonic
Ctrl /Comment or uncomment with line comment
Ctrl Shift /Comment or uncomment with block comment
Ctrl WSelect successively increasing code blocks
Ctrl Shift WDecrease current selection to previous state
Ctrl [Move to code block start
Ctrl ]Move to code block end
Ctrl Shift [Select to the code block start
Ctrl Shift ]Select to the code block end
Ctrl DelDelete to the end of a word
Ctrl BackspaceDelete to the start of a word
Ctrl Alt OOptimize imports
Alt EnterProject quick fix, show intention actions and quick fixes
Ctrl Alt LReformat code
Ctrl Alt IAuto-indent lines
TabIndent lines
Shift TabUnindent lines
Ctrl Shift JSmart line join
Ctrl EnterSmart line split
Shift EnterStart new line
F2Next highlighted error
Shift F2Previous highlighted error

{.shortcuts}

Viewing Layouts

ShortcutAction
Ctrl +Zoom in
Ctrl -Zoom out
Ctrl 0Fit to screen
Ctrl Shift 1Actual size

{.shortcuts}

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
Ctrl 0Zoom to fit
Ctrl BGo to XML
Ctrl ASelect all components
Shift (click)Select multiple components

{.shortcuts}

ShortcutAction
Ctrl +Zoom in
Ctrl -Zoom out
Ctrl 0Zoom to fit
Ctrl BGo to XML
EToggle render errors panel
Ctrl GGroup into a nested graph
TabCycle through destinations
Ctrl ASelect all destinations
Ctrl (click)Select multiple destinations

{.shortcuts}

Build and Run

ShortcutAction
Ctrl F9Build
Shift F10Build and run
Ctrl F10Apply changes and restart activity
Ctrl Alt F10Apply code changes

{.shortcuts}

Debugging

ShortcutAction
Shift F9Debug
F8Step over
F7Step into
Shift F7Smart step into
Shift F8Step out
Alt F9Run to cursor
Alt F8Evaluate expression
F9Resume program
Ctrl F8Toggle breakpoint
Ctrl Shift F8View breakpoints

{.shortcuts}

Refactoring

ShortcutAction
F5Copy
F6Move
Alt DelSafe delete
Shift F6Rename
Ctrl F6Change signature
Ctrl Alt NInline
Ctrl Alt MExtract method
Ctrl Alt VExtract variable
Ctrl Alt FExtract field
Ctrl Alt CExtract constant
Ctrl Alt PExtract parameter

{.shortcuts}

Version Control

ShortcutAction
Ctrl KCommit project to VCS
Ctrl TUpdate project from VCS
Alt Shift CView recent changes
Alt `Open VCS pop-up

{.shortcuts}

Also see