Skip to content

Instantly share code, notes, and snippets.

@rstockbridge
Last active January 3, 2020 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rstockbridge/586d4bef7261531aeae28b0862d255e6 to your computer and use it in GitHub Desktop.
Save rstockbridge/586d4bef7261531aeae28b0862d255e6 to your computer and use it in GitHub Desktop.
Favorite Android Studio Shortcuts (Mac)

Exploring

Description Shortcut
Previous/next cursor position Cmd [ / Cmd ]
Open recently used file Cmd E
Open class Cmd O
Open file Cmd Shift O
Open symbol Cmd Opt O
Find string/regex in file Cmd F
Find string/regex in project Cmd Shift F
Go to definition Cmd B
Go to implementation Cmd Opt B
Go to usage Cmd Opt F7
Go to super Cmd U
Show method parameters Cmd P
Show Javadoc F1
Show class methods and properties Cmd F12

Editing

Description Shortcut
Jump to start/end of line Cmd  / Cmd 
Jump left/right through line   Opt  / Opt 
Grow/shrink selection Opt  / Opt 
Replace in file Cmd R
Rename Shift F6
Delete current line Cmd Backspace
Duplicate current line Cmd D
Generate method Cmd N
Show available completions Ctrl Space
Complete statement Cmd Shift Enter
Apply standard formatting Cmd Opt L
Remove unused imports Ctrl Opt O
Show file in project view Opt 1, Enter
Show/hide project view panel Cmd F1
Select all occurrences in file Cmd Ctrl G
Also select next occurrence in file Ctrl G

Everything Else

Description Shortcut
Show quick-fixes & actions Opt Enter
Search for action Cmd Shift A
Jump to next error in file F2
Show/hide terminal Opt F12
@rstockbridge
Copy link
Author

Thanks to @stkent for the original document!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment