Shortcuts in Android Studio: App Development

Himanshu Nautiyal
The Zalonin
Published in
4 min readJun 29, 2019

Shortcuts are the simplest way to have control over particular things and when it comes to programming it becomes the most important part. Programmers try to save their time by making the IDEs work according to them i.e. they always try to reduce the use of mouse or touchpad.

Here are some shortcuts which a programmer must use while working on Android studio

Alt+Enter: This is the most important combination that everyone using android studio must use. The combination makes the IDE give a suggestion, to solve compile time errors.

Ctrl+Alt+L: The combination helps us to format our code in a decent manner. Most of the time we write complex code and if it is not formatted in a good way we may find it difficult to read that code after some days.

Ctrl+Shift+A: Searching an item/element inside an IDE is a very difficult task. The difference between the traditional way of searching i.e. CTRL+F and the above combination is, CTRL+F help us to find the element inside our project or a particular file but “Ctrl+Shift+A” help us to find the element of the IDE like(plugins, settings, version control, etc)

Ctrl+TAB: This act as “switcher” as it helps us to switch between different project files.

Alt+Insert: The combination helps us to generate code, Eg. If we want to create constructor, getters, setters or Implementing functions for a class then we can easily do that using Alt+Insert.

Ctrl +click: This helps us to move to the definition fo a particular class of function. Many time we want to search for the definition of the function we have used in our class. It also helps us to see the library code most predefined function and classes

Alt+RightArrow & Alt+LeftArrow: The combination also acts as a switcher as it helps us to switch between the files that are present in the above file bar.

Ctrl+Shift+BackSpace: It helps us to navigate to the last editing position inside the IDE.

Alt+” the number, written in front of the toolbar present at the bottom”: If we want to open the ‘logcat’ or ‘version control’ then we would press ALt+6 and Alt+9 respectively

Ctrl+/: Comment down multiple lines at the same time.

So, these are some most important shortcuts which every programmer should know for fast and easy coding.

The important thing here isn’t knowing these gimmicks but trying to use these shortcuts to improve productivity and have a better app developing experience.

A programmer should invest time on designing the algorithms, the designing the blocks of code, the logic implementation and dozens of other things and save time wherever possible and ease your way.

Share this with your Android developer friends and colleagues and help them code better.

Happy Coding.

--

--