Thursday, May 14, 2015

Android - Android Studio Short Keys and tips








For Android studio  shortcuts. Here are a few that I know.






Add unimplemented methods:                               CTRL + I
Override methods:                                                   CTRL + O
Format code:                                                             CTRL + ALT + L
Show project:                                                            ALT + 1
Show logcat:                                                             ALT + 6
Hide project - logcat:                                                SHIFT + ESC
Build:                                                                          CTRL + F9
Build and Run:                                                           CTRL + F10
Collapse all:                                                               CTRL + SHIFT + NumPad +
Expand all:                                                                 CTRL + SHIFT + NumPad -
Find and replace:                                                       CTRL + R

Find:                                                                           CTRL + F
Go to file:                                                                   CTRL + SHIFT  + N

Go to class:                                                               CTRL    N

Navigate open tabs:                                                  ALT L-ARROW , ALT R-ARROW 

Loop up recent files:                                                 CTRL +  E 

Go to line:                                                                   CTRL +  G 

Navigate to last edit location:                                   CTRL +  SHIFT  +  BACKSPACE 

Go to declaration:                                                      CTRL + B 

Go to implementation                                               CTRL +  ALT  +  B 

Go to source:                                                             F4 

Go to super class:                                                        CTRL +  U 

Show call hierchy:                                                     CTRL +  ALT  +  H 

Search in path/project:                                              CTRL +  SHIFT  +  F 

Optimize imports:                                                     CTRL + ALT  +  O 

Issue quick fix:                                                          ALT + ENTER 

Surrond code block:                                                 CTRL + ALT + T 

Rename and Refractor                                              SHIFT + F6 

Line Comment or Uncomment                                 CTRL +  / 

Block Comment or Uncomment                               CTRL + SHIFT + / 

Go to previous/next method                                     CTRL + UP/DOWN 

Show parameters for method                                   CTRL +  P 

Quick documentation lookup                                    CTRL + Q 

Delete a line                                                                CTRL +  Y 

View declaration in layout                                         CTRL +  B 



We can also use Eclipse Shorts keys.Settings> keymap, in the list box select Eclipse and apply. As set here.


Share:

Get it on Google Play

React Native - Start Development with Typescript

React Native is a popular framework for building mobile apps for both Android and iOS. It allows developers to write JavaScript code that ca...