Android Studio 1.0 Official release
Today is a big day, Android Studio 1.0 finally released the official version, which for Android developers is simply the big news ah, then decisively to download the use.
Official Download Address: http://developer.android.com/sdk/index.html
If you've already used a different version of studio, then just overwrite it, and if it's the first time, use the Android Studio tutorial to install the configuration.
Also updated together with SDK tools and so on, open the SDK Manager to update on OK. If you have previously used the RC version of Studio, there should be an error after the update overlay, because Stuido 1.0 uses 1.0 gradle Plug-ins by default, so just go to the build.gradle of the project's root directory and then sync it up with the following code.
Shortcut keys
For many of Eclipse's students, the most important part is the shortcut section, and the studio default shortcuts and eclipse are very different, but studio's powerful place is to set up shortcuts that you can always use in eclipse style. This saves a lot of learning costs for the students who have come to eclipse.
Preferences -> keymap Then you can choose the shortcut you want, where you can choose not only eclipse, but also Emacs,Net Beans Keyboard shortcuts for the editor
For the novice or the eclipse does not like the students, certainly want to learn the default studio shortcuts, following the collation of the commonly used shortcuts, more shortcuts also need everyone to adapt to their own habits. (My own choice is Mac OS X 10.5+)
Action |
Mac OS X |
Win/linux |
Comment Code (//) |
CMD +/ |
Ctrl +/ |
Comment Code (/**/) |
CMD + Option +/ |
Ctrl + Shift +/ |
Formatting code |
CMD + Option + L |
Ctrl + Alt + L |
Clear Invalid Package reference |
Option + control + O |
Alt + Ctrl + O |
Find |
CMD + F |
Ctrl + F |
Find + Replace |
CMD + R |
Ctrl + R |
Move code up and down |
Option + Shift + up/down |
Alt + Shift + up/down |
Delete Row |
CMD + Delete |
Ctrl + Y |
Enlarge and narrow the selected range |
Option + Up/down |
Ctrl + W/ctrl + Shift + W |
Quick Build Structure Body |
CMD + Option + T |
Ctrl + Alt + T |
Quick Override Method |
CMD + O |
Ctrl + O |
Quick navigate to start/end |
CMD + left/right |
Ctrl + left/right |
Collapse Expand code block |
CMD + Plus,minus |
Ctrl + Plus/minus |
Collapse Expand all blocks of code |
CMD + Shift + plus,minus |
Ctrl + Shift + plus,minus |
File method Structure |
CMD + F12 |
Ctrl + F12 |
Find the location of the call |
Ctrl + Option + H |
Ctrl + Alt + H |
Case conversion |
CMD + Shift + U |
Ctrl + Shift + U |
(PS: The above shortcuts do not try to confirm in the win platform, welcome feedback errors and supplements)
Automatic Guide Bag
Finally, one of the most useful settings is that we have to guide the package each time we reference some classes, and studio can set up an automatic guide package, which is simply too practical.
To Preferences -> Editor -> Auto Import -> Java put the following options on the hook OK
From now on, the world is quiet ...
So far the basic use of Android Studio I believe that everyone will have, starting from the next series of introduction Gradle grammar and basic configuration and multi-channel packaging, etc., please look forward to!