47 Very Useful Android Studio Shortcuts for Mac users

Ideaplunge Solutions
4 min readJul 19, 2018

Following up with our previous article on 50 shortcuts for Windows and Linux, here we have compiled a list of useful shortcuts for Android Studio developers who use Mac system.

Top Android mobile app developers rely on shortcuts to fastrack their their development process.

We hope the following shortcuts will come in handy during your development process.

Navigating and searching within Android Studio

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

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

Cmd + F : Find

Cmd + R : Find and Replace

Cmd + N : Find Class

Cmd + Shift + O : Find file (instead of class)

Cmd + Option + O : Find the method in a class

Cmd + F12 : Open file structure pop-up

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

Shift + F4 : Open current editor tab in new window

Cmd + E : Recently opened files pop-up

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

Cmd + Shift + Backspace : Go to last edit location

Fn + Shift + F2 : Jump b/w highlighted syntax errors

Ctrl + H : 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

Cmd + Option + T : Surround with (if…else / try…catch / etc.)

Cmd + Backspace : Delete line at caret

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

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

Cmd + D : Duplicate current line or selection

Control + Space : Basic code completion

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

Control + J : Quick documentation lookup

Cmd + P : Show parameters for selected method

F3 : Toggle bookmark

Option + F3 : Toggle bookmark with mnemonic

Cmd + / : Comment/uncomment with line comment

Option + Up : Select successively increasing code blocks

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

Option + Delete : Delete to end of word

Cmd + 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)

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

Cmd + Option + L : Reformat code

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

Option + Drag : 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

Control + J : Would show the Documentation

Cmd + P : Would show the Parameter info

Cmd + B : Would be used to navigate

Build and run

Cmd + F9 : Build

Control + R : Build and run

Control + Cmd + R : Apply changes (with Instant Run)

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

Cmd + Enter : 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

Cmd + Backquote (~) : Apply another code style/coloring scheme or keymap right from the editor

Cmd + 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.

--

--

Ideaplunge Solutions

Ideaplunge is one of the best software development companies based in India. Our solutions are high performance apps, ui& ux design & cms http://ideaplunge.com/