Android Studio Series Tutorial Three--shortcut keys
This article is for personal originality, welcome reprint, but please be sure to indicate the source in obvious position!
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, so decisive to download use.
Official: http://developer.android.com/sdk/index.html
If you've used other versions of studio before, then just overwrite it, and if it's the first time, then follow the Android Studio series Tutorial one to install the configuration.
Also updated with SDK tools, open SDK Manager for updates. If you have previously used the RC version of Studio, the update overlay should be an error, because Stuido 1.0 uses the 1.0 Gradle plugin by default, so just update the project root build.gradle to the following code and synchronize with OK
Shortcut keys
For many of the students who turn to eclipse, the most important thing is the shortcut key section, studio default shortcuts and eclipse is very different, but studio is a powerful place to set up you can always use the Eclipse style shortcut keys, This saves a lot of learning costs to those who transition from eclipse.
Preferences - Keymap then you can choose the shortcut you want, here you can choose not only eclipse, but also Emacs,Net Beans Shortcut keys for the editor
For the novice or the eclipse does not like the students, certainly want to learn the default studio shortcut keys, the following collation of the following commonly used some shortcuts, more shortcut keys also need to get accustomed to their own adaptation. (I chose Mac OS X 10.5+ myself)
action |
mac OSX |
win/linux |
comment code (//) |
cmd +/ |
ctrl +/ |
comment code (/**/) |
cmd + Option +/ |
ctrl + Shift +/ |
format 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 |
Up and down move code |
option + Shift + up/down |
alt + Shift + up/down |
Delete row |
cmd + Delete |
ctrl + Y |
enlarge narrow the selected range |
option + up/down |
ctrl + W/ctrl + Shift + W |
Quick build structure |
cmd + Option + T |
ctrl + Alt + T |
Quick Overwrite method |
cmd + O |
ctrl + O |
quick positioning to beginning/end |
cmd + left/right |
ctrl + left/right |
Collapse unwind code block |
cmd + plus,minus |
ctrl + plus/minus |
Collapse expands all code blocks |
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 |
Uppercase and lowercase conversions |
CMD + Shift + U |
Ctrl + Shift + U |
(PS: The above shortcuts do not try to confirm in the win platform, welcome feedback error and supplement)
Automatic Guide Package
Finally, we introduce one of the most useful settings, we only have to refer to some classes each time we have to guide the package, and studio can be set by automatic Guide package, simply too practical.
To Preferences , Editor , Auto Import , Java put the following options on the OK
Since then the world is quiet ...
At this point, the basic use of Android studio is believed to have been done, starting with the next series of Gradle syntax and basic configuration and multi-channel packaging, and so on, please look forward to!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Studio Series Tutorial Three--shortcut keys