Shortcuts are not just time-saving, they can bring in big changes in the development usage. Many developers overlook shortcut keys, not realizing how quickly they can bring in efficiency in your work. Top Android mobile app developers rely on shortcuts to make their development process easier and faster. So, we have compiled 50 awesome and useful shortcuts to help Android mobile app developers working on Android studio.

These shortcuts work for both Windows and Linux.

Let’s get started.

Navigating and searching within Android Studio

Press Shift twice : Search everything (including code and menus)

Ctrl + Tab : Switch between tabs and tool window

Ctrl + Shift + up/down : To move the code above and below

Ctrl + F : Find

Ctrl + R : Replace

Ctrl + N : Find Class

Ctrl + Shift + N : Find file (instead of class)

Ctrl + Alt + Shift + N : Find the method in a class

Ctrl + F12 : Open file structure pop-up

Alt + Right/Left Arrow : Navigate between open editor tabs

Alt + Up and Alt + Down : Quickly move between methods in the editor

Shift + F4 : Open current editor tab in new window

Ctrl + E : Recently opened files pop-up

Ctrl + Shift + E : Recently edited files pop-up

Ctrl + Shift + Backspace : Go to last edit location

F2/shift + F2 : Jump b/w highlighted syntax errors

Ctrl+H (Navigate/ Type Hierarchy) : To see the inheritance hierarchy for a selected class, press Ctrl+H. You can also invoke the hierarchy view right from the editor to see the hierarchy for the currently edited class.

Writing code

Ctrl + Alt + T : Surround with (if…else / try…catch / etc.)

Ctrl + Y : Delete line at caret

Ctrl + minus/plus : Collapse/expand current code block

Ctrl + Shift + minus/plus : Collapse/expand all code blocks

Ctrl + D : Duplicate current line or selection

Ctrl + Space : Basic code completion

Ctrl + Shift + Space : Smart code completion (filters the list of methods and variables by expected type)

Ctrl + Q : Quick documentation lookup

Ctrl + P : Show parameters for selected method

F11 : Toggle bookmark

Ctrl + F11 : Toggle bookmark with mnemonic

Ctrl + / : Comment/uncomment with line comment

Ctrl + W : Select successively increasing code blocks

Ctrl + Shift + V : Choose and insert recent clipboard contents into the text

Ctrl + Delete : Delete to end of word

Ctrl + Shift + Enter : Complete a current statement such as if, do-while, try-catch, return (or a method call) into a syntactically correct construct (e.g. add curly braces)

Alt + Enter : Project quick fix (show intention actions and quick fixes)

Control + Alt + L : Reformat code

Ctrl+C : If nothing is selected in the editor, and you press Ctrl+C, then the whole line at caret is copied to the clipboard.

To select Column : You can easily make column selection by dragging your mouse pointer while keeping the Alt key pressed.

When the cursor is placed on a particular method, use the following shortcuts

Ctrl + Q : Would show the Documentation

Ctrl + P : Would show the Parameter info

Ctrl + B : Would be used to navigate

Build and run

Ctrl + F9 : Build

Shift + F10 : Build and run

Ctrl + F10 : Apply changes (with Instant Run)

Alt + Shift + F10 : Access the Run/Debug dropdown on the main toolbar

Debugging

Alt + Click : To quickly evaluate the value of any expression while debugging the program, hold Alt and click this expression to see its value and calculate it, call a method, etc.

Refactoring

Shift + F6 : Rename

Testing

To create test case : Android Studio helps create test cases directly from class declaration. With the caret at the class name in the editor, press Alt+Enter, and choose Create Test from the suggestion list.

General

Ctrl + Back Quote(~) : Apply another code style/coloring scheme or keymap right from the editor

Ctrl + Click : A tab in the editor to navigate to any part of the file path. Select the necessary element in the drop-down, and the corresponding file path opens in an external browser.

To split vertically : Click on the file , right click on the file and press “split vertically” to split the files in to two panes

Ideaplunge is one of the leading and fast-growing mobile app development companies in Bangalore. It employs highly talented and best android mobile app developers to craft fabulous applications for startups and Fortune 500 companies. The company caters to top industries such as Retail, Healthcare, Social, Fashion and Lifestyle, and has esteemed clients in over 7 countries.