Android Studio Mac version shortcut keys

Source: Internet
Author: User

Keys for the symbols of the shortcut keys under Mac

?option|alt

?-shift

?-control

?-command

?-esc

Note: the F6 F7 shortcut keys for the F12 combination of the F function keys and//etc. need to be pressed and turned on the fn function key
For example, ?F12 the key combination of shortcut keys is:fn + command + F12

Android Studio common shortcut keys for Mac Find/View related

?O: Global Lookup Class class name < usage very high >

?F: Find < Use very high in the current edit file > | corresponds to theCtrl + F

?F12: The structure of the currently edited file in quick Navigation | corresponding to the windowCtrl + F12

?E: Open a list of recently accessed files | corresponding to the windowCtrl + E

??O: Enter the class name/method name/field name to find any matching classes/methods/fields < usage very high >

??O: Global Project Lookup Files (class/resource files/Layout files are found through this shortcut) < very high usage >

?H: View the hierarchy structure of the current editing class | corresponding to the windowCtrl + H

?F7: Lists the cases where the class/method is referenced/called in the Global project < The usage is very high >[better than the ??F7 display effect] | corresponds to theAlt + F7

??F7: Lists the cases where the class/method is referenced/called in the Global Project | corresponding to the windowCtrl + Alt + F7

??H: Method called structure [method ' s call hierarchy]| corresponding to the windowctrl + alt + h

?P: Lists the valid arguments for a series of function methods, if the cursor is between parentheses of a method call | corresponding to the windowCtrl + P

??F7: Fast, highlighting the variables in the current file references, use ?G and ??G shortcut keys can go to jump to the next/previous highlighted variable, by ? removing the highlighting | In the corresponding windowCtrl + Shift + F7

F1: View a comment document for a class/method

control operation Related

?/: Comments and uncomment, comment effect //... | corresponds to theCtrl + /

??/: Comments and uncomment, comment effect /*...*/ | corresponds to theCtrl+Shift+/

??up/down: Move line up and down | corresponding to the windowalt + shift + up/down

?delete: Delete Row | corresponding to the windowctrl + y

?d: Copy row | corresponding to the windowctrl + d

?J: Quickly generate template code blocks, such as if , while , return etc. < usage very high, efficient writing code > | corresponding to theCtrl + J

?N: Fast generation of Getter/setter method, construction method, ToString () method, etc. < usage very high > | corresponding to the windowAlt + Insert

??T: Surround with quick recall,, if for try...catch , while etc Surround code | Corresponding to thectrl + alt + t

?O: Introducing methods to override the parent class [override methods]< very High utilization >

?I: Introducing implementation interfaces or abstract class methods [Implement methods]< very High utilization >

?Space: When declaring a variable, give the suggested variable name based on the variable type hint, and many other smart tips < usage is very high >

??L: Code formatting < usage very high > | corresponding to the windowCtrl+Alt+L

code Refactoring related

?F6: Class name/method name/variable name rename operation when code refactoring | corresponding to the windowShift + F6

?R: Can be used to rename variables in bulk when code is refactored

??M: Method Refactoring, Method extraction | corresponding to WindowCtrl+Alt+M

??P: Parametric refactoring, extracting method internal variables into method parameters | corresponding to theCtrl+Alt+P

??V: Variable extraction,< utilization rate is very high > | corresponding to the windowCtrl+Alt+V

new StringBuffer()
    • 1

The following are the effects of using the shortcut keys:

StringBuffer stringBuffer = new StringBuffer();
    • 1

??F: field extraction, the variable within the method is drawn out into a class field declaration, simply say that the declaration of the variable from within the method of reconstruction extraction to the outside of the method | corresponding to the windowCtrl+Alt+F

other

??A: You can invoke any menu or action name in Android Studio | corresponding to thectrl + shift + a

Android Studio Mac version 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.