Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

Android Studio

Shortcuts
I will talk about some shortcuts that we
need while developing app on Android
Studio and that speed up our processes by
providing a practical flow for mobile
developers,.
Auto Fix / Auto Edit / Auto Apply Suggestions :

Windows : ALT + Enter


Mac : Option + Enter
Extract Method (Extract the Selected Block as
a Separate Method)

Windows : CTRL + ALT + M


Mac : Command + ALT + M
Move a Line Up or Down


Windows : CTRL + Shift + ↓
| CTRL + Shift +
Mac : Command + Shift +↑ | Command +Shift + ↓
Return to the Last Edited Line/Location

Windows : CTRL + Shift + Backspace


Mac : Command + Shift + Backspace
Select All Matching Occurrences

Windows : CTRL + Shift + ALT + J


Mac : Control + Command + G
Edit Code with Multiple Cursors Sequentially

Windows : ALT + J
Mac : Control + G
Edit Multiple Cursor / Rows

Windows : ALT + drag with left mouse click


Mac : Option + drag with left mouse click
Comment Out Code

Windows : CTRL + /
Mac : Command + /
Make Selection Uppercase / Lowercase

Windows : CTRL + Shift + U


Mac : Command + Shift + U
Access to Clipboard History

Windows : Control + Shift + V


Mac : Command + Shift + V
Mulit line Comment Out Code

Windows : CTRL + Shift + /


Mac : Command + Shift + /
Enclose Statements ( Include Expressions / Add
Statements )

Windows : CTRL + ALT + T


Mac : Command + Option + T
Go to Declaration directly or by select

Windows : CTRL + Click


Mac : Command + Click
Add Automatic Override Methods

Windows : CTRL + O
Mac : Command + O
View Recently used/opened files)

Windows : CTRL + E
Mac : Command + E
Auto Generate Code

Windows : ALT + INS


Mac : Command + N
Code Completion

Windows : CTRL + Space


Mac : Command + Space
Quick Documentation

Windows : CTRL + Q
Mac : Control + J
Search Everywhere

SHIFT + SHIFT ( press Shift twice )


=> Duplicate Current Line

Windows : CTRL + D
Mac : Command + D

=> Remove Current Line Completely

Windows : CTRL + Y
Mac : Command + Backspace

=> Redoing (Move Forward)

Windows : CTRL + Shift + Z


Mac : Command + Shift + Z
=> Move to start or end of sentence

Windows : Home / End


Mac : Command + ← and Command + →
=> Reformat Code

Windows : CTRL + ALT + L


Mac : Command + Option + L

=> Show List Of Function Parameters

Windows : CTRL + P
Mac : Command + P
Customize Keymap

You can find other IDE shortcuts like this from the links in the references.
If you want to customize it for yourself, you can do it on the preferences.
Thank You
That’s all for now, I hope it will be useful

You might also like