Android Studio is the official integrated development environment (IDE) for Android application development. In this article, some of the most imp shortcuts are explained in Android, with the help of exmaples.
Some of the most important Shortcut keys used in Android Studio are:
- CTRL + E -> Recently opened files pop-up:
The Android Studio has an option where you can browse the most recently opened files on the go. It performed with the help of Ctrl + E.Syntax:
Windows: CTRL + E Mac: Command + E
- CTRL + D -> Duplicate current line or selection:
The Android Studio has an option where you can create a duplicate of the current line or the selection. It performed with the help of Ctrl + D.
Syntax:
Windows: CTRL + D Mac: Command + D
- CTRL + Y -> Delete line at caret:
The Android Studio has an option where you can delete the current line where the cursor is at. It performed with the help of Ctrl + Y.Syntax:
Windows: CTRL + Y Mac: Command + Delete
- CTRL + Q -> Quick documentation lookup:
The Android Studio has an option where you can browse the dcoumentation quickly. It performed with the help of Ctrl + Q.Syntax:
Windows: CTRL + Q Mac: CTRL + J
- CTRL + ALT + L -> Reformat code:
The Android Studio has an option where you can format the code with just one press. It performed with the help of Ctrl + Alt + L.Syntax:
Windows: CTRL + ALT + L Mac: Command + Option + L
- CTRL + O -> Override methods:
The Android Studio has an option where you can override methods. It performed with the help of Ctrl + O.
Syntax:
Windows: CTRL + O Mac: CTRL + O
- CTRL + ‘+’/’-‘ (Plus/Minus) -> Collapse/expand current code block:
The Android Studio has an option where you can collapse or open the current code block in which the cursor is. The expansion of the block is performed with the help of Ctrl + ‘+’ and the contraction with the help of Ctrl + ‘-‘.Syntax:
Windows: CTRL + '+'/'-' Mac: Command + '+'/'-'
- CTRL + Shift + ‘+’/’-‘ (Plus/Minus) -> Collapse/expand all code block:
The Android Studio has an option where you can collapse or open all the code blocks. The expansion of the block is performed with the help of Ctrl + ‘+’ and the contraction with the help of Ctrl + ‘-‘.Syntax:
Windows: CTRL + Shift + '+'/'-' Mac: Command + Shift + '+'/'-'
- CTRL + ALT + I -> Auto-indent code:
The Android Studio has an option where you can auto indent the code with just one press. It performed with the help of Ctrl + Alt + I.Syntax:
Windows: CTRL + ALT + I Mac: Command + Option + I
- CTRL + B or CTRL + click -> Go to declaration (directly):
The Android Studio has an option where you can go to the declaration of the entity directly from its use. It performed with the help of Ctrl + B or Ctrl + Click.Syntax:
Windows: CTRL + B or CTRL + Click Mac: Command + B or Command + Click
Reference: https://developer.android.com/studio/intro/keyboard-shortcuts
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
- Android | How to Create/Start a New Project in Android Studio?
- Android | AdMob Interstitial Ads for Android Studio
- Android | AdMob Banner Ads for Android Studio
- Toasts for Android Studio
- Logcat window in Android Studio
- How to create a Stopwatch App using Android Studio
- Guide to Install and Set up Android Studio
- How to build a simple Calculator app using Android Studio?
- Guessing the Number Game using Android Studio
- How to Upload Project on GitHub from Android Studio?
- How to build a simple music player app using Android Studio
- How to scale different Views to all screen sizes in Android Studio?
- How to populate RecyclerView with Firebase data using FirebaseUI in Android Studio
- Keyboard Shortcuts for Ubuntu | Set - 1
- Android | How to Request permissions in Android Application?
- Android | Android Application File Structure
- Android | How to add Radio Buttons in an Android Application?
- Speech To Text using IBM Watson Studio
- Creating Knockout Application along with Setting up Environment in Visual Studio
- Important functions of STL Components in C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.





