Everyone likes to increase their productivity and everyone has their own favourite productivity hacks, but not everyone agrees! In this blog, Florian will talk about his top three Android Studio shortcuts and how they're better than the rest.
Ctrl + Alt + T
Surround a statement or a code block with
else , a cast or even live templates!
No more fiddling with parenthesis for ever.
Make sure the area you want to operate with is selected (using the next tip for instance!)
Incremental expression selection
Linux: Ctrl + W / Ctrl + Shift + W
OSX: Alt + ↑ / Alt + ↓
Extends / shrinks the selection.
No more imprecise mouse selection! Very powerful used in combination with other refactoring shortcuts such as
Ctrl + Alt + M to extract a new method for instance.
Ctrl + Shift + Enter
Complete all the things!
Insert smartly (most of the time) parenthesis and colons, no more painful going back and forth to the start and the end of the statement to make everything right.
Sometime mess up the statement. I also wish there were a possibility to both complete a method name and import it statically.