Short-Cut keys for Android Studio for MacOs
2 min readAug 18, 2019
My motive for write this article is use shortcut command for more efficiency and productivity while coding. I am trying to use least of trackpad of my MacBook Pro while coding. So i started to find shortcut commands for development while coding. So i found some shortcut maybe that helps you for increase your productivity while coding. Here we go.
- Recent File open (show all file opened recently) :-
cmd + e
- Definition of object (Show full ) :-
cmd + y
- Open Class (Open any class) :-
cmd + o
- Duplicate selected section/ Duplicate Line (copy paste instant) :-
cmd + d
- Use pre define Live Templates (for reduce doing code) :-
cmd + j
- For commit code to Git local :-
cmd + k
- For push code and commit with message :-
cmd + shift + k
- Goto particular line and Column :-
cmd + l
separate with colon - Goto for implementation or Initializer :-
cmd + b
- Auto generate some code like Constructor, Getter and Setter :-
cmd + n
- Search Anywhere in project :-
double click Shift
- Perform particular action :-
cmd + shift + a
like create Java File, layout file, Sync project with Gradle. Example:-cmd + shift + a
then type “java“ now option is coming in front of you. - Find particular file :-
cmd + shift + o
- Find the parameter of function use
cmd + p
where you pass the parameter. - Multiple section cursor feature :-
control + g
- Get Last 5 copy paste value :-
cmd + shift + v
- Auto generate method using selected code using :-
cmd + option + m
- Open Preference :-
cmd + ,
- Open Project Structure :-
cmd + ;
- Move to last/present cursor position :-
cmd + option + <- / ->
using arrow keys. - Format code :-
cmd + option + l
- Distraction free mode :-
cmd + shift + a
then type distraction and hit enter. If you want to revert to original mode again same thing and hit enter. - Remove Un-wanted import
cmd + option + o
- Re-factor variable or method :-
shift + f6
- Close opened tab :-
cmd + w
- Run Debugger :-
control + d
- Open Logcat option :-
cmd + 6
- Open Android Studio terminal :-
option + f12
- Open Debugger option :-
cmd + 5
- Layout file move from text to design :-
control + shift + <- / ->
arrow keys - Run Code or build : —
cmd + r
I learnt most of the command from following post it is most useful for me. I hope this is also useful for you :- click here
I hope this is useful for you.