Being More Productive With Android Studio – Part 2

We have seen some android studio shortcuts in early post Being More Productive With Android Studio – Part 1. Welcome to the second part of Be More productive in Android Studio.

Change Signature

Windows : CTRL + F6
macOS : CMD + FN + F6

It allows you to change signature of your class as well as method. You can add method parameter and its datatype.

Be More Productive


Replace in path

Windows : CTRL + SHIFT + R
macOS : CTRL + SHIFT + R

It allows you to replace text in your module, app, single directory or custom place.

Be More Productive


Navigation Between Files

Windows : CTRL + TAB
macOS : CTRL + TAB

It allows you to navigate between your opened files.

Be More Productive


Start New Line

Windows : SHIFT + ENTER
macOS : SHIFT + ENTER

No matters where is your cursor currently, whether at starting of line, end of line or inbetween in word, it will add new line and cursor will be moved to new line.

Be More Productive


Move to Class

Windows : CTRL + N
macOS :  CMD + N

Allows you to move to class, it can be user defined class or any java class.

Be More Productive


Move to File

Windows : CTRL + SHIFT + N
macOS : CMD + SHIFT + N

Allows you to open any file including non-project files.

Be More Productive


Lookup Recent Files

Windows : CTRL + E
macOS : CMD + E

shows you the list of files recently opened.

Be More Productive


GoTo Line

Windows : CTRL + G
macOS : CMD + G

allows you to move to line of specified line number.

Be More Productive


Last Edited Location

Windows : CTRL + SHIFT + BACKSPACE
macOS : CMD + SHIFT + BACKSPACE

Allows you to move to last edited location.

 

Being More Productive With Android Studio – Part 1
Being More Productive With Android Studio – Part 3