Top 3 Android Studio shortcuts - Flo

Datetime:2016-08-22 23:18:18          Topic: Android Studio           Share

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.

Surround with

Ctrl + Alt + T

Surround a statement or a code block with if , 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.

Completing statements

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.





About List