Short-Cut keys for Android Studio for MacOs

Shivam Sharma
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.

  1. Recent File open (show all file opened recently) :- cmd + e
  2. Definition of object (Show full ) :- cmd + y
  3. Open Class (Open any class) :- cmd + o
  4. Duplicate selected section/ Duplicate Line (copy paste instant) :- cmd + d
  5. Use pre define Live Templates (for reduce doing code) :- cmd + j
  6. For commit code to Git local :- cmd + k
  7. For push code and commit with message :- cmd + shift + k
  8. Goto particular line and Column :- cmd + lseparate with colon
  9. Goto for implementation or Initializer :- cmd + b
  10. Auto generate some code like Constructor, Getter and Setter :- cmd + n
  11. Search Anywhere in project :- double click Shift
  12. Perform particular action :- cmd + shift + alike create Java File, layout file, Sync project with Gradle. Example:- cmd + shift + athen type “java“ now option is coming in front of you.
  13. Find particular file :- cmd + shift + o
  14. Find the parameter of function use cmd + p where you pass the parameter.
  15. Multiple section cursor feature :- control + g
  16. Get Last 5 copy paste value :- cmd + shift + v
  17. Auto generate method using selected code using :- cmd + option + m
  18. Open Preference :- cmd + ,
  19. Open Project Structure :- cmd + ;
  20. Move to last/present cursor position :- cmd + option + <- / -> using arrow keys.
  21. Format code :- cmd + option + l
  22. 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.
  23. Remove Un-wanted import cmd + option + o
  24. Re-factor variable or method :- shift + f6
  25. Close opened tab :- cmd + w
  26. Run Debugger :- control + d
  27. Open Logcat option :- cmd + 6
  28. Open Android Studio terminal :- option + f12
  29. Open Debugger option :- cmd + 5
  30. Layout file move from text to design :- control + shift + <- / -> arrow keys
  31. 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.

--

--

Shivam Sharma
Shivam Sharma

No responses yet