Skip to content

Android Studio Keyboard Shortcuts

    Android Studio Keyboard Shortcuts

    Android Studio Keyboard Shortcuts for Windows

    General

    Save all

    • Ctrl
    • +
    • S

    Synchronize

    • Ctrl
    • +
    • Alt
    • +
    • Y

    Minimize or maximize the editor

    • Ctrl
    • +
    • Shift
    • +
    • F12

    Add to favorites

    • Alt
    • +
    • Shift
    • +
    • F

    Inspect the current file with the current profile

    • Alt
    • +
    • Shift
    • +
    • I

    Quick switch the scheme

    • Ctrl
    • +
    • `

    Open the settings dialogue

    • Ctrl
    • +
    • Alt
    • +
    • S

    Open the project structure dialogue

    • Ctrl
    • +
    • Alt
    • +
    • Shift
    • +
    • S

    Switch between the tabs and tool window

    • Ctrl
    • +
    • Tab

    Navigating and Searching

    Search everything, including code and menus

    • Shift
    • +
    • Shift

    Find

    • Ctrl
    • +
    • F

    Find next

    • F3

    Find previous

    • Shift
    • +
    • F3

    Replace

    • Ctrl
    • +
    • R

    Find action

    • Ctrl
    • +
    • Shift
    • +
    • A

    Search by a symbol name

    • Ctrl
    • +
    • Alt
    • +
    • Shift
    • +
    • N

    Find class

    • Ctrl
    • +
    • N

    Find file, instead of class

    • Ctrl
    • +
    • Shift
    • +
    • N

    Find in path

    • Ctrl
    • +
    • Shift
    • +
    • F

    Open file structure pop-up

    • Ctrl
    • +
    • F12

    Navigate between open editor tabs

    • Alt
    • +
    • Right/Left

    Jump to source

    • Ctrl
    • +
    • Enter

    Open the current editor tab in a new window

    • Shift
    • +
    • F4

    Recently opened files pop-up

    • Ctrl
    • +
    • E

    Recently edited files pop-up

    • Ctrl
    • +
    • Shift
    • +
    • E

    Go to last edit location

    • Ctrl
    • +
    • Shift
    • +
    • Backspace

    Close active editor tab

    • Ctrl
    • +
    • F4

    Return to editor window from a tool window

    • Esc

    Hide active or last active tool window

    • Shift
    • +
    • Esc

    Go to line

    • Ctrl
    • +
    • G

    Open type hierarchy

    • Ctrl
    • +
    • H

    Open method hierarchy

    • Ctrl
    • +
    • Shift
    • +
    • H

    Open call hierarchy

    • Ctrl
    • +
    • Alt
    • +
    • H

    Viewing Layouts

    Zoom in

    • Ctrl
    • +
    • +

    Zoom out

    • Ctrl
    • +

    Fit to screen

    • Ctrl
    • +
    • 0

    Actual size

    • Ctrl
    • +
    • Shift
    • +
    • 1

    Layout Editor

    Toggle between Design and Blueprint modes

    • B

    Toggle between Portrait and Landscaope modes

    • O

    Toggle devices

    • D

    Force refresh

    • R

    Toggle render errors panel

    • E

    Delete constraints

    • Del

    Zoom in

    • Ctrl
    • +
    • +

    Zoom out

    • Ctrl
    • +

    Zoom to fit

    • Ctrl
    • +
    • 0

    Go to XML

    • Ctrl
    • +
    • B

    Select all components

    • Ctrl
    • +
    • A

    Select multiple components

    • Shift
    • +
    • (click)

    Navigation Editor

    Zoom in

    • Ctrl
    • +
    • +

    Zoom out

    • Ctrl
    • +

    Zoom to fit

    • Ctrl
    • +
    • 0

    Go to XML

    • Ctrl
    • +
    • B

    Toggle render errors panel

    • E

    Group into a nested graph

    • Ctrl
    • +
    • G

    Cycle through destinations

    • Tab

    Select all destinations

    • Ctrl
    • +
    • A

    Select multiple destinations

    • Ctrl
    • +
    • (click)

    Writing Code

    Generate code, e.g. getters, setters, constructors, new class

    • Alt
    • +
    • Insert

    Override methods

    • Ctrl
    • +
    • O

    Implement methods

    • Ctrl
    • +
    • I

    Surround with if…else, try…catch, etc

    • Ctrl
    • +
    • Alt
    • +
    • T

    Delete line at caret

    • Ctrl
    • +
    • Y

    Collapse the current code block

    • Ctrl
    • +

    Expand the current code block

    • Ctrl
    • +
    • +

    Collapse all code blocks

    • Ctrl
    • +
    • Shift
    • +

    Expand all code blocks

    • Ctrl
    • +
    • Shift
    • +
    • +

    Duplicate the current line or selection

    • Ctrl
    • +
    • D

    Basic code completion

    • Ctrl
    • +
    • Space

    Smart code completion, filters the list of methods and variables by expected type

    • Ctrl
    • +
    • Shift
    • +
    • Space

    Complete statement

    • Ctrl
    • +
    • Shift
    • +
    • Enter

    Quick documentation lookup

    • Ctrl
    • +
    • Q

    Show parameters for selected method

    • Ctrl
    • +
    • P

    Go to declaration, directly

    • Ctrl
    • +
    • B

    Go to implementations

    • Ctrl
    • +
    • Alt
    • +
    • B

    Go to super-method or super-class

    • Ctrl
    • +
    • U

    Open quick definition lookup

    • Ctrl
    • +
    • Shift
    • +
    • I

    Toggle project tool window visibility

    • Alt
    • +
    • 1

    Toggle bookmark

    • F11

    Toggle bookmark with mnemonic

    • Ctrl
    • +
    • F11

    Comment or uncomment with line comment

    • Ctrl
    • +
    • /

    Comment or uncomment with block comment

    • Ctrl
    • +
    • Shift
    • +
    • /

    Select successively increasing code blocks

    • Ctrl
    • +
    • W

    Decrease current selection to previous state

    • Ctrl
    • +
    • Shift
    • +
    • W

    Move to code block start

    • Ctrl
    • +
    • [

    Move to code block end

    • Ctrl
    • +
    • ]

    Select to the code block start

    • Ctrl
    • +
    • Shift
    • +
    • [

    Select to the code block end

    • Ctrl
    • +
    • Shift
    • +
    • ]

    Delete to the end of a word

    • Ctrl
    • +
    • Del

    Delete to the start of a word

    • Ctrl
    • +
    • Backspace

    Optimize imports

    • Ctrl
    • +
    • Alt
    • +
    • O

    Project quick fix, show intention actions and quick fixes

    • Alt
    • +
    • Enter

    Reformat code

    • Ctrl
    • +
    • Alt
    • +
    • L

    Auto-indent lines

    • Ctrl
    • +
    • Alt
    • +
    • I

    Indent lines

    • Tab

    Unindent lines

    • Shift
    • +
    • Tab

    Smart line join

    • Ctrl
    • +
    • Shift
    • +
    • J

    Smart line split

    • Ctrl
    • +
    • Enter

    Start new line

    • Shift
    • +
    • Enter

    Next highlighted error

    • F2

    Previous highlighted error

    • Shift
    • +
    • F2

    Build and Run

    Build

    • Ctrl
    • +
    • F9

    Build and run

    • Shift
    • +
    • F10

    Apply changes and restart activity

    • Ctrl
    • +
    • F10

    Apply code changes

    • Ctrl
    • +
    • Alt
    • +
    • F10

    Debugging

    Debug

    • Shift
    • +
    • F9

    Step over

    • F8

    Step into

    • F7

    Smart step into

    • Shift
    • +
    • F7

    Step out

    • Shift
    • +
    • F8

    Run to cursor

    • Alt
    • +
    • F9

    Evaluate expression

    • Alt
    • +
    • F8

    Resume program

    • F9

    Toggle breakpoint

    • Ctrl
    • +
    • F8

    View breakpoints

    • Ctrl
    • +
    • Shift
    • +
    • F8

    Refactoring

    Copy

    • F5

    Move

    • F6

    Safe delete

    • Alt
    • +
    • Del

    Rename

    • Shift
    • +
    • F6

    Change signature

    • Ctrl
    • +
    • F6

    Inline

    • Ctrl
    • +
    • Alt
    • +
    • N

    Extract method

    • Ctrl
    • +
    • Alt
    • +
    • M

    Extract variable

    • Ctrl
    • +
    • Alt
    • +
    • V

    Extract field

    • Ctrl
    • +
    • Alt
    • +
    • F

    Extract constant

    • Ctrl
    • +
    • Alt
    • +
    • C

    Extract parameter

    • Ctrl
    • +
    • Alt
    • +
    • P

    Version Control

    Commit project to VCS

    • Ctrl
    • +
    • K

    Update project from VCS

    • Ctrl
    • +
    • T

    View recent changes

    • Alt
    • +
    • Shift
    • +
    • C

    Open VCS pop-up

    • Alt
    • +
    • `

    Android Studio Keyboard Shortcuts for Mac

    General

    Save all

    • Cmd
    • +
    • S

    Synchronize

    • Cmd
    • +
    • Opt
    • +
    • Y
    • Cmd
    • +
    • Alt
    • +
    • Y

    Minimize or maximize the editor

    • Ctrl
    • +
    • Cmd
    • +
    • F12
    • Cmd
    • +
    • Shift
    • +
    • F12

    Add to favorites

    • Opt
    • +
    • Shift
    • +
    • F
    • Alt
    • +
    • Shift
    • +
    • F

    Inspect the current file with the current profile

    • Opt
    • +
    • Shift
    • +
    • I
    • Alt
    • +
    • Shift
    • +
    • I

    Quick switch the scheme

    • Cmd
    • +
    • `

    Open the settings dialogue

    • Cmd
    • +
    • ,
    • +
    • Cmd
    • +
    • Alt
    • +
    • S

    Open the project structure dialogue

    • Cmd
    • +
    • ;
    • +
    • Cmd
    • +
    • Alt
    • +
    • Shift
    • +
    • S

    Switch between the tabs and tool window

    • Ctrl
    • +
    • Tab
    • Cmd
    • +
    • Tab

    Navigating and Searching

    Search everything, including code and menus

    • Shift
    • +
    • Shift

    Find

    • Cmd
    • +
    • F

    Find next

    • Cmd
    • +
    • G
    • F3

    Find previous

    • Cmd
    • +
    • Shift
    • G
    • Shift
    • +
    • F3

    Replace

    • Cmd
    • +
    • R

    Find action

    • Cmd
    • +
    • Shift
    • +
    • A

    Search by a symbol name

    • Cmd
    • +
    • Opt
    • +
    • O
    • +
    • Cmd
    • +
    • Alt
    • +
    • Shift
    • +
    • N

    Find class

    • Cmd
    • +
    • O
    • Cmd
    • +
    • N

    Find file, instead of class

    • Cmd
    • +
    • Shift
    • +
    • O
    • Cmd
    • +
    • Shift
    • +
    • N

    Find in path

    • Cmd
    • +
    • Shift
    • +
    • F

    Open file structure pop-up

    • Cmd
    • +
    • F12

    Navigate between open editor tabs

    • Alt
    • +
    • Right/Left

    Jump to source

    • Cmd
    • +
    • Down
    • Cmd
    • +
    • Enter

    Open the current editor tab in a new window

    • Shift
    • +
    • F4

    Recently opened files pop-up

    • Cmd
    • +
    • E

    Recently edited files pop-up

    • Cmd
    • +
    • Shift
    • +
    • E

    Go to last edit location

    • Cmd
    • +
    • Shift
    • +
    • Backspace

    Close active editor tab

    • Cmd
    • +
    • W
    • Cmd
    • +
    • F4

    Return to editor window from a tool window

    • Esc

    Hide active or last active tool window

    • Shift
    • +
    • Esc

    Go to line

    • Cmd
    • +
    • G

    Open type hierarchy

    • Cmd
    • +
    • H

    Open method hierarchy

    • Cmd
    • +
    • Shift
    • +
    • H

    Open call hierarchy

    • Cmd
    • +
    • Alt
    • +
    • H

    Viewing Layouts

    Zoom in

    • Cmd
    • +
    • +

    Zoom out

    • Cmd
    • +

    Fit to screen

    • Cmd
    • +
    • 0

    Actual size

    • Cmd
    • +
    • Shift
    • +
    • 1

    Layout Editor

    Toggle between Design and Blueprint modes

    • B

    Toggle between Portrait and Landscaope modes

    • O

    Toggle devices

    • D

    Force refresh

    • R

    Toggle render errors panel

    • E

    Delete constraints

    • Del

    Zoom in

    • Cmd
    • +
    • +

    Zoom out

    • Cmd
    • +

    Zoom to fit

    • Cmd
    • +
    • 0

    Go to XML

    • Cmd
    • +
    • B

    Select all components

    • Cmd
    • +
    • A

    Select multiple components

    • Shift
    • +
    • (click)

    Navigation Editor

    Zoom in

    • Cmd
    • +
    • +

    Zoom out

    • Cmd
    • +

    Zoom to fit

    • Cmd
    • +
    • 0

    Go to XML

    • Cmd
    • +
    • B

    Toggle render errors panel

    • E

    Group into a nested graph

    • Cmd
    • +
    • G

    Cycle through destinations

    • Tab

    Select all destinations

    • Cmd
    • +
    • A

    Select multiple destinations

    • Cmd
    • +
    • (click)

    Writing Code

    Generate code, e.g. getters, setters, constructors, new class

    • Cmd
    • +
    • N
    • Alt
    • +
    • Insert

    Override methods

    • Cmd
    • +
    • O

    Implement methods

    • Cmd
    • +
    • I

    Surround with if…else, try…catch, etc

    • Cmd
    • +
    • Opt
    • +
    • T
    • Cmd
    • +
    • Alt
    • +
    • T

    Delete line at caret

    • Cmd
    • +
    • Y

    Collapse the current code block

    • Cmd
    • +

    Expand the current code block

    • Cmd
    • +
    • +

    Collapse all code blocks

    • Cmd
    • +
    • Shift
    • +

    Expand all code blocks

    • Cmd
    • +
    • Shift
    • +
    • +

    Duplicate the current line or selection

    • Cmd
    • +
    • D

    Basic code completion

    • Cmd
    • +
    • Space

    Smart code completion, filters the list of methods and variables by expected type

    • Cmd
    • +
    • Shift
    • +
    • Space

    Complete statement

    • Cmd
    • +
    • Shift
    • +
    • Enter

    Quick documentation lookup

    • Ctrl
    • +
    • J
    • Cmd
    • +
    • Q

    Show parameters for selected method

    • Cmd
    • +
    • P

    Go to declaration, directly

    • Cmd
    • +
    • B

    Go to implementations

    • Cmd
    • +
    • Opt
    • +
    • B
    • Cmd
    • +
    • Alt
    • +
    • B

    Go to super-method or super-class

    • Cmd
    • +
    • U

    Open quick definition lookup

    • Cmd
    • +
    • Y
    • +
    • Cmd
    • +
    • Shift
    • +
    • I

    Toggle project tool window visibility

    • Cmd
    • +
    • 1
    • Alt
    • +
    • 1

    Toggle bookmark

    • F3
    • F11

    Toggle bookmark with mnemonic

    • Opt
    • +
    • F3
    • Cmd
    • +
    • F11

    Comment or uncomment with line comment

    • Cmd
    • +
    • /

    Comment or uncomment with block comment

    • Cmd
    • +
    • Shift
    • +
    • /

    Select successively increasing code blocks

    • Cmd
    • +
    • W

    Decrease current selection to previous state

    • Cmd
    • +
    • Shift
    • +
    • W

    Move to code block start

    • Cmd
    • +
    • [

    Move to code block end

    • Cmd
    • +
    • ]

    Select to the code block start

    • Cmd
    • +
    • Shift
    • +
    • [

    Select to the code block end

    • Cmd
    • +
    • Shift
    • +
    • ]

    Delete to the end of a word

    • Cmd
    • +
    • Del

    Delete to the start of a word

    • Cmd
    • +
    • Backspace

    Optimize imports

    • Cmd
    • +
    • Alt
    • +
    • O

    Project quick fix, show intention actions and quick fixes

    • Alt
    • +
    • Enter

    Reformat code

    • Cmd
    • +
    • Opt
    • +
    • L
    • Cmd
    • +
    • Alt
    • +
    • L

    Auto-indent lines

    • Cmd
    • +
    • Opt
    • +
    • I
    • Cmd
    • +
    • Alt
    • +
    • I

    Indent lines

    • Tab

    Unindent lines

    • Shift
    • +
    • Tab

    Smart line join

    • Ctrl
    • +
    • Shift
    • +
    • J
    • Cmd
    • +
    • Shift
    • +
    • J

    Smart line split

    • Cmd
    • +
    • Enter

    Start new line

    • Shift
    • +
    • Enter

    Next highlighted error

    • F2

    Previous highlighted error

    • Shift
    • +
    • F2

    Build and Run

    Build

    • Cmd
    • +
    • F9

    Build and run

    • Ctrl
    • +
    • R
    • Shift
    • +
    • F10

    Apply changes and restart activity

    • Ctrl
    • +
    • Cmd
    • R
    • Cmd
    • +
    • F10

    Apply code changes

    • Ctrl
    • +
    • Shift
    • +
    • Cmd
    • R
    • Cmd
    • +
    • Alt
    • +
    • F10

    Debugging

    Debug

    • Ctrl
    • +
    • D
    • Shift
    • +
    • F9

    Step over

    • F8

    Step into

    • F7

    Smart step into

    • Shift
    • +
    • F7

    Step out

    • Shift
    • +
    • F8

    Run to cursor

    • Opt
    • +
    • F9
    • Alt
    • +
    • F9

    Evaluate expression

    • Opt
    • +
    • F8
    • Alt
    • +
    • F8

    Resume program

    • F9

    Toggle breakpoint

    • Cmd
    • +
    • F8

    View breakpoints

    • Cmd
    • +
    • Shift
    • +
    • F8

    Refactoring

    Copy

    • F5

    Move

    • F6

    Safe delete

    • Cmd
    • +
    • Del
    • Alt
    • +
    • Del

    Rename

    • Shift
    • +
    • F6

    Change signature

    • Cmd
    • +
    • F6

    Inline

    • Cmd
    • +
    • Opt
    • +
    • N
    • Cmd
    • +
    • Alt
    • +
    • N

    Extract method

    • Cmd
    • +
    • Opt
    • +
    • M
    • Cmd
    • +
    • Alt
    • +
    • M

    Extract variable

    • Cmd
    • +
    • Opt
    • +
    • V
    • Cmd
    • +
    • Alt
    • +
    • V

    Extract field

    • Cmd
    • +
    • Opt
    • +
    • F
    • Cmd
    • +
    • Alt
    • +
    • F

    Extract constant

    • Cmd
    • +
    • Opt
    • +
    • C
    • Cmd
    • +
    • Alt
    • +
    • C

    Extract parameter

    • Cmd
    • +
    • Opt
    • +
    • P
    • Cmd
    • +
    • Alt
    • +
    • P

    Version Control

    Commit project to VCS

    • Cmd
    • +
    • K

    Update project from VCS

    • Cmd
    • +
    • T

    View recent changes

    • Opt
    • +
    • Shift
    • +
    • C
    • Alt
    • +
    • Shift
    • +
    • C

    Open VCS pop-up

    • Ctrl
    • +
    • V
    • Alt
    • +
    • `