Android Studio Series Tutorial Three--shortcut keys

Source: Internet
Author: User

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 +/
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
Expand Narrow Selection 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 position to beginning/end CMD + left/right Ctrl + left/right
Collapse Unwind code block CMD + Plus,minus Ctrl + Plus/minus
Collapse Expand 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 ...

Android Studio Series Tutorial Three--shortcut keys

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.