Android Studio Productivity – Top 20 Shortcuts for Android Developers

Hello to Androiders,

Hope you all are playing well with Android Studio. Yes, I am here after long time to share my research and some useful things for Android Developers.

I referred so many blogs and found so many tricks for Android Studio but I am sharing those things which is really useful in day-to-day life of Programming. You may have to know some tips and tricks to be more productive and increase efficiency.

The reason of this article, is to list helpful tips, tricks, shortcuts and resources for Android Studio that will improve your overall efficiency and performance.

Android Studio Productivity - Top 20 Shortcuts for Android Developers

Android Studio Productivity – Top 20 Shortcuts for Android Developers

Let’s have fun with some useful shortcuts and commands, Hope you will enjoy it!

Search for Command:

Windows/Linux: CTRL + SHIFT + A 

MacOS: CMD + SHIFT + A

Let’s say you want to close current tab and you don’t know how. You just type: close and you’ll get a proper shortcut / command.

If you want to create new Activity, just type Basic Activity and press ENTER.

Choose from the last copy / pastes:

Windows/Linux: CTRL + SHIFT + V 

MacOS: CMD + SHIFT + V

By default there are 5 last copy/paste items.

Android Studio Shortcuts – Choose Last Copy Paste

Enable Multi Cursor feature:

Windows/Linux: ALT + J

MacOS: CTRL + G

Android Studio Productivity – Multi Cursor

A detailed article about this feature is provided by Bartek Lipinski on Medium. Highly recommended!

Open a class:

Windows/Linux: CTRL + N

MacOS: CMD + O

Open any file:

Windows/Linux: CTRL + SHIFT + N

MacOS: SHIFT + O

Go to implementation:

Windows/Linux: CTRL + ALT + B

MacOS: CMD + OPTION + B

Let’s say you have an interface. By clicking on the interface’s name and then clicking the Go to implementation shortcut, you will be redirected to classes which implement that interface.

Go to declaration:

Windows/Linux: CTRL + B

MacOS: CMD + B

It allows you to quickly check and go to a declaration of a class, method or a variable.

Go to type declaration:

Windows/Linux: CTRL + SHIFT + B

MacOS: CTRL + SHIFT + B

Move between Tabs:

Windows/Linux: ALT +  ← / → (left arrow OR right arrow)

MacOS: CMD + SHIFT + [  (move left)  or CMD + SHIFT + ] (move right)

Move between Design / Text tabs in layout view:

Windows/Linux: ALT +  SHIFT + ← / → (left arrow OR right arrow)

MacOS: CTRL + SHIFT + [  (move left)  or CTRL + SHIFT + ] (move right)

Close a Current Tab:

Windows/Linux: CTRL + F4

MacOS: CMD + W

Hide all windows:

Windows/Linux: CTRL + SHIFT + F12

MacOS: CMD + SHIFT + F12

Format your code:

Windows/Linux: CTRL + ALT + L

MacOS: CMD + OPTION + L

You will get problem with ubuntu, that is locking screen by use of this shortcut so you can use CTRL+ALT+SHIFT+L for that. It will open dialog for format and optimize your code.

Auto-indent lines:

Windows/Linux: CTRL + ALT + I

MacOS: CMD + OPTION + I

Find:

Windows/Linux: CTRL + F

MacOS: CMD + F

Find (in Whole Project):

Windows/Linux: CTRL + SHIFT + F

MacOS: CMD + SHIFT + F

Find and Replace:

Windows/Linux: CTRL + R

MacOS: CMD + R

Find and Replace:

Windows/Linux: CTRL + SHIFT + R

MacOS: CMD + SHIFT + R

Move hard coded strings to resources:

Windows/Linux: ALT + ENTER

MacOS: OPTION + RETURN

The shortcut must be used when a caret is on a text.

If you use that shortcut globally, the IDE will do Project quick fix (show intention actions and quick fixes).

Build and Run:

Windows/Linux: SHIFT + F10

MacOS: CONTROL + R

 

All the Shortcuts are useful in our coding of daily life. Hope you enjoyed.

Thank you. Keep Sharing. Keep Learning. 🙂 🙂

Page Views (1315)

2457 Total Views 2 Views Today
Support with Your Share:

About pratikbutani

Enthusiastic Android Application Developer, Speaker at Google Developer Group - Rajkot, All time Learner of new things, Googler, Eager to Help IT Peoples. Master of all, Jack of ONE.

Comment Your Suggestion or Appreciation:

Loading Facebook Comments ...

Leave a Reply

Your email address will not be published. Required fields are marked *