Essential Android Studio Shortcuts

Pravin Dharam
4 min readDec 30, 2019

--

Howdy friends, We will see the shortcuts in android studio that every android developer needs to know to increase the speed of development. Let’s take a look at what are these essential shortcuts.

  1. Reformate code [Ctrl + Altr + L]

2. Remove unused imports [Ctrl + Altr + O]

3. Search Any Class [Ctrl + N]

4. Search Any File [Ctrl + Shift+ N]

5. Recent Files [Ctrl + E]

6. Remove the particular line of code. [Ctr + Y]

7. Rename Method or Variable [Shift + F6]

8. Search Everything Class, Files, Symbols, Actions. [Click Double Shift]

Note: actions maybe your menu option in the menu list.

File (menu)— plugin(action), Build (menu)— make project(action)

9. Auto Generated Getter & Setter, Constructor, toString() method etc.

[Alt + Insert]

Java Class Example

Kotlin Class Example

10. Travels through function [Altr + Up / Down]

11. Move code within a function or across functions.

[Alt + Shift + Up/Down]

12. Check the uses of variable and function, Jump on particular class or file.

[Ctr + B]

Git Shortcuts:

Note: For Git shortcut Ensure your project enables version control in the VCS menu check below screenshot highlighted in yellow color.

13. Git — Commit [Ctr + K]

14. Git — Push [Ctr + Shift + K]

15. Select — similar code [Alt + J]

16. Select — all occurrences of code [Shift + Ctrl + Alt + J]

17. Select — random position or code in file [Shift + Alt + Mouse Left Key]

18. Select — the verticle line of code and write. [Alt + Mouse Left Key + Scroll ]

19. Open/Close File Explorer Window. [Alt + 1]

20. Open/Close Logcat Window. [Alt + 6]

21. Open/Close Terminal Window. [Alt + F12]

22. Show File Structure Window. [Alt + 7]

23. Open/Close Version Control Window. [Alt + 9]

24. Run Android Project [Shift + F10]

25. Debug — Jump to next breakpoint [F9]

26. Debug — Jump to next line/ debug line by line [F8]

27. Debug — Evaluate Expression [Alt + F8]

Bonus Tip — Create your shortcut and abbreviation

Create Shortcut:

Step1. File — Settings — Keymap.

Step2. Search the action which you want to add a shortcut to it.

Step4. Right-click on the action and select Add Keyboard Shortcut option.

Create Abbreviation

Step1. File — Settings — Keymap.

Step2. Search the action which you want to add an abbreviation to it.

Step4. Right-click on the action and select Add Abbreviation option.

--

--