Android Studio Shortcut keys on windows, linux and mac machines

Last updated Aug 03, 2022

While developing android applications/games with android studio we may take time to do some finding the features/functionalities by checking manually. We can save short time by using shortcuts of android studio IDE settings. 

In the below table you can see list of shortcuts of Android studio with respect to different os like 

Android studio shortcuts on windows, Linux and Mac machines.


 

General 

Functionality

Windows & Linux

Mac

Smart code completion

Ctrl + Shift + Space

??Space

Search everywhere

Double Shift

Double?

Show intention actions and quick-fixes

Alt + Enter

??

Generate code

Alt + Ins

?N, ? ?

Parameter info

Ctrl + P

?P

Extend selection

Ctrl + W

?↑

Shrink selection

Ctrl + Shift + W

?↓

Recent files popup

Ctrl + E

? E

Rename

Shift + F6

?F6

 

Open corresponding tool window

Alt + #[0-9]

?0...?9

Save all

Ctrl + S

?S

Synchronize

Ctrl + Alt + Y

??Y

Toggle maximizing editor

Ctrl + Shift + F12

??F12

Inspect current file with current profile

Alt + Shift + I

??I

Quick switch current scheme

Ctrl + BackQuote (`)

?`

Open Settings dialog

Ctrl + Alt + S

? ,

Open Project Structure dialog

Ctrl + Alt + Shift + S

? ;

Find Action

Ctrl + Shift + A

??A


 

Debugging

Functionality

Windows & Linux

Mac

Step over / into

F8/F7

F8 /F7

Smart step into / Step out

Shift + F7/Shift + F8

?F7 /?F8

Run to cursor

Alt + F9

?F9

Evaluate expression

Alt + F8

?F8

Resume program

F9

??R

Toggle breakpoint

Ctrl + F8

?F8

View breakpoints

Ctrl + Shift + F8

??F8


 

Search/Replace

Functionality

Windows & Linux

Mac

Search everywhere

Double Shift

Double?

Find

Ctrl + F

? F

Find next / previous

F3/Shift + F3

? G /??G

Replace

Ctrl + R

? R

Find in path

Ctrl + Shift + F

??F

Replace in path

Ctrl + Shift + R

??R

Select next occurrence

Alt + J

? G

Select all occurrences

Ctrl + Alt + Shift + J

? ?G

Unselect occurrence

Alt + Shift + J

? G


 

Editing

Functionality

Windows & Linux

Mac

Basic code completion

Ctrl + Space

? Space

Smart code completion

Ctrl + Shift + Space

??Space

Complete statement

Ctrl + Shift + Enter

?? ?

Parameter info

Ctrl + P

? P

Quick documentation lookup

Ctrl + Q

?J, F1

External Doc

Shift + F1

? F1

Brief Info

Ctrl + mouse

? + mouse

Show descriptions of error at caret

Ctrl + F1

? F1

Generate code...

Alt + Insert

? N, ? ?

Override methods

Ctrl + O

? O

Implement methods

Ctrl + I

? I

Surround with…

Ctrl + Alt + T

? ? T

Comment / uncomment with line comment

Ctrl + /

? /

Comment / uncomment with block comment

Ctrl + Shift + /

? ?/

Extend selection

Ctrl + W

? ↑

Shrink selection

Ctrl + Shift + W

? ↓

Context info

Alt + Q

??Q

Show intention actions and quick-fixes

Alt + Enter

? ?

Reformat code

Ctrl + Alt + L

??L

Optimize imports

Ctrl + Alt + O

? ? O

Auto-indent line(s)

Ctrl + Alt + I

? ? I

Indent / unindent selected lines

Tab/Shift + Tab

? /??

Cut current line to clipboard

Ctrl + X, Shift + Delete

? X

Copy current line to clipboard

Ctrl + C , Ctrl + Insert

? C

Paste from clipboard

Ctrl + V, Shift + Insert

? V

Paste from recent buffers...

Ctrl + Shift + V

??V

Duplicate current line

Ctrl + D

?D

Delete line at caret

Ctrl + Y

? Backspace

Smart line join

Ctrl + Shift + J

??J

Smart line split

Ctrl + Enter

??

Start new line

Shift + Enter

??

Toggle case for word at caret or selected block

Ctrl + Shift + U

??U

Select till code block end / start

Ctrl + Shift + ]/[

???[ /???]

Delete to word end

Ctrl + Delete

? ?

Delete to word start

Ctrl + Backspace

?  Backspace

Expand / collapse code block

Ctrl + NumPad+/-

? + /? -

Expand al

Ctrl + Shift + NumPad+

??+

Collapse all Ctrl + Shift + NumPad

Ctrl + Shift + NumPad-

??-

Close active editor tab

Ctrl + F4

?W


 

Refactoring

Functionality

Windows & Linux

Mac

Copy

F5

F5

Move

F6

F6

Safe Delete

Alt + Delete

?Delete

Rename

Shift + F6

?F6

Refactor this

Ctrl + Alt + Shift + T

?T

Change Signature

Ctrl + F6

?F6

Inline

Ctrl + Alt + N

??N

Extract Method

Ctrl + Alt + M

??M

Extract Variable

Ctrl + Alt + V

??V

Extract Field

Ctrl + Alt + F

??F

Extract Constant

Ctrl + Alt + C

??C

Extract Parameter

Ctrl + Alt + P

??P

 

Navigation

Functionality

Windows & Linux

Mac

Go to class

Ctrl + N

?O

Go to file

Ctrl + Shift + N

??O

Go to symbol

Ctrl + Alt + Shift + N

??O

Go to next / previous editor tab

Alt + Right/Left

?← /?→

Go back to previous tool window

F12

F12

Go to editor (from tool window)

Esc

?

Hide active or last active window

Shift + Esc

??

Go to line

Ctrl + G

? L

Recent files popup

Ctrl + E

? E

Recent locations popup

Ctrl + Shift + E

??E

Navigate back / forward

Ctrl + Alt + Left/Right

??← /??→

Navigate to last edit location

Ctrl + Shift + Backspace

?? Backspace

Select current file or symbol in any view

Alt + F1

? F1

Go to declaration

Ctrl + B, Ctrl + Click

?B, ?Click

Go to implementation(s)

Ctrl + Alt + B

? ? B

Open quick definition lookup

Ctrl + Shift + I

?Space, ?Y

Go to type declaration

Ctrl + Shift + Backspace

??B

Go to super-method / super-class

Ctrl + U

? U

Go to previous / next method

Alt + Up/Down

?↑ /?↓

Move to code block end / start

Ctrl + ]/[

? ? [ / ? ? ]

File structure popup

Ctrl + F12

? F12

Type hierarchy

Ctrl + H

?H

Method hierarchy

Ctrl + Shift + H

??H

Call hierarchy

Ctrl + Alt + H

??H

Next / Previous highlighted error

F2/Shift + F2

F2 /?F2

Edit source / View source

F4/Ctrl + Enter

F4 /? ↓

Show navigation bar

Alt + Home

? Home

Toggle bookmark

F11

F3

Toggle bookmark with mnemonic

Ctrl + F11

? F3

Go to numbered bookmark

Ctrl + #[0-9]

?0 ...?9

Show bookmarks

Shift + F11

? F3

 

Compile And Run

Functionality

Windows & Linux

Mac

Build project

Ctrl + F9

? F9

Compile selected file, package or module

Ctrl + Shift + F9

??F9

Select configuration and run / debug

Alt + Shift + F10/F9

??R / D

Run / Debug

Shift + F10/F9

?R / D

Run context configuration from editor

Ctrl + Shift + F10

??R, ??D

Run anything

Double Ctrl

?



 

Usage Search

Functionality

Windows & Linux

Mac

Find usages / Find usages in file

Alt + F7/Ctrl + F7

?F7 /?F7

Highlight usages in file

Ctrl + Shift + F7

??F7

Show usages

Ctrl + Alt + F7

??F7



 

VCS / Local History

Functionality

Windows & Linux

Mac

Commit project to VCS

Ctrl + K

?K

Update project from VCS

Ctrl + T

?T

Push commits

Ctrl + Shift + K

??K

‘VCS’ quick popup

Alt + BackQuote (`)

?V


 

Live Templates

Functionality

Windows & Linux

Mac

Surround with Live Template

Ctrl + Alt + J

??J

Insert Live Template

Ctrl + J

?J

 

Conclusion: In this article we have seen Android studio shortcut keys on different platforms, we can save some time while writing the code using these shortcut keys.

Keywords: Android studio shortcut keys, Android studio

Article Contributed By :
https://www.rrtutors.com/site_assets/profile/assets/img/avataaars.svg

220 Views