Android Studio shortcut key daily (5)

Source: Internet
Author: User

Original address: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-5/

42. Enter key and TAB key completion

Shortcut keys: Enter or Tab

There is an interesting difference between using the ENTER key or the TAB completion: The statement that is complete with the ENTER key may be the result you expect, and when you use the TAB key to complete the statement, it will delete the next "." All previous code, including parentheses, semicolons, or spaces.

43. Navigate to the parent class

Shortcut key: Cmd+u windows:ctrl+u

If you are currently in an overridden method in a subclass, the shortcut will navigate to the method in the parent class, and if you are currently on a class name, the shortcut will navigate you to its parent class.

44. Return to edit area

Shortcut keys: (1) If you want to return to the panel open: Escape. (2) If you want to close the panel and return: Shift+escape

There are a number of shortcut keys that will allow you to leave the editing area temporarily (such as type hierarchy, find usages, etc.), if you want to quickly return to the editing area, there are two choices:

(1) Escape: Simply reset the cursor to the edit area

(2) Shift+escape: This will close the current function panel and then reset the cursor to the edit area

45. Jump to the previous tool window

Shortcut key: F12 (May conflict with the operating system's default shortcut key feature)

Sometimes you return to the edit area from the function panel and want to see the information in the function panel, such as the results of "find usages". With this shortcut, you can easily jump back and forth between the two.

46. Hide all Function panels

Apple: Cmd+shift+f12 windows:ctrl+shift+f12

This shortcut sets the editor to be similar to full-screen mode. Then use the shortcut again to restore all panels.

47. Open the function panel by numbers

Apple: Cmd+number Windows:alt+number

You may have noticed that some feature panels have a number in front of them, and you can quickly open the corresponding panel by using this numeric shortcut. If you don't see the name of the panel, click the rectangle in the lower-left corner of the IDE to display it.

48, display the parameter information of the method

Apple: Cmd+p windows:ctrl+p

This is the same as the parameter list information you see when you invoke the method. This shortcut is handy if you want to see the parameter information for a method. In addition, the parameters currently under the cursor will turn yellow, if all the parameters are not yellow, then the call method is illegal, it is possible that the parameter type gives the wrong (if you want an int parameter, you give a float type).

Sometimes when you write code for a method call, you may accidentally lose the parameter list information, and you can enter a "," to trigger the IDE to display the parameter information again.

49. Window Switcher

Shortcut key: Ctrl+tab

Once the window switcher is turned on, you can quickly navigate through numbers or letters by pressing the CTRL key. You can also select a tab or Feature panel, and then press BACKSPACE to turn it off.

50. Contextual information

Shortcut key: Ctrl+shift+q

When you are editing a longer code page, this shortcut can tell you the context of the current location. Usually this contextual information is the name of the outer class or the name of the inner class, or it may be the name of a method.

If you are currently inside the class and are not inside any other methods, the name of the current class and the parent class and the implemented interface will be displayed.

Android Studio shortcut key daily (5)

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.