Everyone likes to increase their productivity and everyone has their own favourite productivity hacks, but not everyone agrees! In this blog, Ataul will talk about his top three Android Studio shortcuts and how they're better than the rest.
Cycle between open tabs
Linux: alt + left AND alt + right OSX: cmd + shift + [ AND cmd + shift + ]
This shortcut switches to the next (or previous) open tab in the current editor.
I know a lot of folks prefer hiding tabs and using
ctrl + tab/
ctrl + shift + tab, but I'm more partial to spamming the left/right shortcuts.
As an added bonus, the OS X shortcut also works in Google Chrome to switch between tabs!
Complete the current thing
Linux: ctrl + shift + enter OSX: cmd + shift + enter
This shortcut completes your current statement in the shortest way and moves the cursor to the line you need next.
Most often, it's useful for just added braces and moving the cursor inside the braces, but when you couple it when the autocomplete for variables, the time saved adds up!
Choose button in open dialog
alt + [underlined letter]
This shortcut lets you choose one of the options of an open dialog. When you press
alt, an underline appears below the letter you need to press to perform that action.
In the above example, you can see that the
a in "Select all" and
U in "Unselect all" are underlined, showing us that we need to press
alt + a or
alt + u to choose those options.
There is one case it doesn't work. I always forget which case it is. But when it happens, it's very annoying.