Categories
Android

What you need to know to use Android Studio

As I am mostly doing my stuff with Eclipse even though the Android studio came, I still work with Eclipse project for Android but as time comes, we cannot ignore the Android studio anymore because:

  • Official Android document is only support for Android Studio
  • More and more library today does not include any support (no .jar to provide) for Eclipse

Of course, people might said more as Android studio is better because of blaa blaa…. but for me, two above reasons are mainly important that may block me to do my stuff.

Somehow to switch to Android Studio, the same way as we switch to InteliJ IDE, it’s a little bit frustrated, confusing or even stuck on something that we can do with Eclipse.

 

Here, I try to collect around the information that we need to know to replace our old habit with eclipse or just adapt to our old style on the new IDE.

First loaded the IDE, you see this screen:

android-studio-first-screen-info

And so here are:

1. Important Android Studio Shortcuts You Need the Most

  1. Go to class : CTRL + N.
  2. Go to file : CTRL + SHIFT + N.
  3. Navigate open tabs : ALT + Left-Arrow ; ALT + Right-Arrow.
  4. Lookup recent files : CTRL + E.
  5. Go to line : CTRL + G.
  6. Navigate to last edit location : CTRL + SHIFT + BACKSPACE.
  7. Go to declaration : CTRL + B.

Check this StackOverflow.

2. How about if you want Eclipse Shortcut Keys instead?

You can use “Mac os X, Visual studio, Eclipse, Netbeans etc.. shortcuts in your Android Studio by doing the following:

  • File -> Settings -> Keymap -> choose “Eclipse” from dropdown.
  • OR press Ctrl+Alt+S -> keymap -> choose “Eclipse” from dropdown like this.

android-studio-setting-screen-keymap

3. Configure your Android Studio for any Source Control

As example, we need SVN (Subversion). Make sure you have a default svn client in your machine, if you already have it, on Android Studio:

  1. Go to File > Settings
  2. Click Plugins and then select Search Subversion Integration
  3. Check SubVersion.
  4. Restart Android Studio.

android-studio-setting-screen-svn

 

Anything more? Will update.

 

2 replies on “What you need to know to use Android Studio”

More about command:

These are the shortcuts used in Android studio

Go to class CTRL + N
Go to file CTRL + Shift + N
Navigate open tabs ALT + Left-Arrow; ALT + Right-Arrow
Look 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 hierarchy CTRL + ALT + H
Search in path/project CTRL + SHIFT + F

Programming Shortcuts:-

Reformat code CTRL + ALT + L
Optimize imports CTRL + ALT + O
Code Completion CTRL + SPACE
Issue quick fix ALT + ENTER
Surround 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 ALT + UP/DOWN
Show parameters for method CTRL + P
Quick documentation lookup CTRL + Q
Delete a line CTRL + Y
View declaration in layout CTRL + B

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.