Android Studio shortcut keys (Mac edition)

Source: Internet
Author: User

Used as a period of time, the feeling is quite useful, although still some small problems, but the benefits are very obvious ...


Switch from Eclipse to as the most uncomfortable estimate is the shortcut keys, the whole of a long time to basically put an individual in the use of Eclipse shortcut keys to find almost, but still some shortcut key wood has, if you have a good but I do not welcome to inform.


I am a quick and easy person to feel useful (although some may not be used):


CTRL + R Build and run
OPTION + CMD + O Find files or methods or fields within a project
CMD + 0 Find class files within a project
CMD + P Show parameters for selected method
OPTION + CMD + L Reformat code
CMD + N Generate method
CMD + R Equivalent to search substitution
CMD +, Open Preferences
CMD +; Open Project Structure
CMD + X Delete Row
CMD + D Copy rows
CTRL + J Show API for this method or class
CMD + [return to last edit position
CMD +] Advance to last edit position
CTRL + P Move the mouse to the previous line
CTRL + N Move the mouse to the next line
ALT + ENTER Import package, auto fix (not verified)
SHIFT + CMD + [ Previous tab
SHIFT + CMD +] Next tab
ALT + UP ARROW Select the word or line at the current cursor
CTRL + ALT + H Find the location of the call
ALT + SHIFT + up/down Move code up and down
CTRL + O Quick Overwrite Method
ALT + CTRL + O Clear Invalid References
ALT + ENTER Prompt for error resolution (when extracting local variables, bring up the dialog box and select the second one)
CMD + SHIFT + F Ctrl + H equivalent to Eclipse
CTRL + T Bring up the Refactor option box to extract methods, member variables, etc.
CMD + ALT + V Equivalent to eclipse's CTRL + 2, L automatically generate variables
CMD + ALT + F Extract into member variables


CMD + SPACE is equivalent to Eclipse ALT +/, but conflicts with the system's switching input method, modify shortcut key search Basic
ALT +/ Auto-Complete Last method name (original)


Keymap->reformat Code Add ALT + F




Editor->code completion->case Sensitive completion tune to none to make case insensitive
Editor->show Quick doc on mouse move tick, mouse move to show API on method
Editor->auto import->optimize imports on fly tick, remove unused declarations, equivalent to CTRL + ALT + O




Android_studio Importing Projects
1, modify the Buid.gradle file Classpath to bring the latest: eg.
dependencies {
Classpath ' Com.android.tools.build:gradle:1.0.0-rc1 '
}
2, modify the Gradle/wrapper/gradle-wrapper.properties file Distributionurl (see need): eg.
Distributionurl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip


CTRL + CMD + F Full screen toggle, which causes the toolbar to disappear once

Android Studio shortcut keys (Mac edition)

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.