HomeAndroidMy Most Used Android Studio Shortcut Keys

My Most Used Android Studio Shortcut Keys


To start with, I am not an Android Studio shortcut keys man as a result of I am unable to merely keep in mind them. I normally simply go to the menu or mouse proper click on to search for the duties that I wish to carry out.

Nevertheless, there are 5 Android Studio shortcut keys that I exploit daily that I am unable to stay with out. That is solely primarily based on my 9 months of Android improvement expertise.

Earlier than I do know this shortcut key, I do that

My_Most_Used_Android_Studio_Shortcut_Keys_01.gif

With Management + / shortcut key, I do that

My_Most_Used_Android_Studio_Shortcut_Keys_02.gif

The precise equal shortcut key needs to be Management + Shift + /. As a result of it requires additional key press, it slows me down. Thus, Management + / is sweet sufficient for me.

2. Go to declaration (Management + B)

As a substitute of proper click on -> Go to -> Declarations or Usages

My_Most_Used_Android_Studio_Shortcut_Keys_03.gif

I simply use Management + B.

My_Most_Used_Android_Studio_Shortcut_Keys_04.gif

I do that rather a lot one way or the other throughout my improvement, particularly making an attempt to know the exterior library API that I am utilizing.

3. Navigate Again / Entrance (Management + Alt + Left/Proper Arrow)

In Visible Studio (whereas engaged on C# programming improvement), I exploit this little from side to side icon buttons rather a lot. Android Studio has this buttons too, however it’s not enabled by default.

To allow this again / entrance navigation icon buttons in Android studio, click on View -> Look -> Toolbar

My_Most_Used_Android_Studio_Shortcut_Keys_05.gif

This shortcut key – Management + Alt + Left/Proper Arrow is rather a lot sooner as an alternative of clicking the buttons. So I do not flip this toolbar on.

Management + Alt + Left Arrow is backward navigation and Management + Alt + Proper Arrow is ahead navigation.

By some means, this shortcut key – Management + Alt + Left/Proper Arrow is just not documented wherever. I am unable to discover it within the official documentation right here too, are you able to?

4. Refactor -> Rename (Shift + F6)

Since I do plenty of Proper Click on -> Refactor -> Rename…, I believe it’s higher for me to recollect this shortcut.

My_Most_Used_Android_Studio_Shortcut_Keys_06.gif

As a substitute of doing above, I can simply choose / spotlight the category / operate title and press Management + F6. I do that rather a lot as a result of I imagine having a proper title is crucial for clear code finest practices.

I do not actually like this shortcut, just because F6 is simply too distant. Usually any shortcut keys that consists of operate key, I do not prefer it.

5. Present Diff (Management + D)

One other shortcut key that I exploit rather a lot is Management + D to indicate diff in GitHub repository. That is my widespread apply to assessment my code earlier than I commit something into the GitHub.

android_studio_share_to_github_13.png

The issue is that this Management + D shortcut key works solely once you’re in Commit tab. For instance, once you’re in Undertaking tab, it would not work anymore. Nevertheless, you continue to can Proper Click on-> Git -> Present Diff to view the diff.

[Updated: July 17, 2022] – Added optimize imports shortcut key under.

6. Optimize Imports (Management + Alt + O)

There’s this Optimize imports on the fly setting (File -> Settings -> Editor -> Common -> Auto Import) however I don’t prefer it. It removes imports that I would like, particularly after I’m making an attempt to remark out some code. Thus, I made a decision to NOT flip it on.

Thus, I favor to manually do it. This Management + Alt + O comes very helpful.

My_Most_Used_Android_Studio_Shortcut_Keys_07.png

[Updated: Sept 25, 2022] – Added search every thing shortcut key under.

7. Search Every part (Press Shift twice)

I found this shortcut key lately to principally search every thing in Android Studio. That is particularly helpful when your challenge grows bigger. I am unable to discover the equal menu for this shortcut key. It appears solely out there for this shortcut key, press Shift twice.

My_Most_Used_Android_Studio_Shortcut_Keys_08.gif

Conclusion

Properly, that is it. I do know there are different helpful shortcut keys, however truthfully I do not use them rather a lot besides the highest 7 shortcut keys above. I’ll maintain this weblog publish updated after I discover one thing new.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments