Android Studio skills

Source: Internet
Author: User

It takes 20 minutes to download gradle automatically. If your network speed is okay, when you create a new project, it will automatically download the file for you. Well, now that you are coming down, you should know how to use it. After all, it is also a new tool. You need to check the product manual to make full use of it, right?

Below is a brief introduction to the use of several of his shortcut keys:

 


NO.1 Ctrl + N can quickly search for the class you want to open. When you enter the class name, it has the automatic complementing function!


[Html] <STRONG> To open any class in the editor quickly, press Ctrl + N (Navigate | Class) and start typing the name of the class. choose the class from a drop-down list that appears.

You can open any file in your project in a similar way by using Ctrl + Shift + N (Navigate | File) </STRONG>

To open any class in the editor quickly, press Ctrl + N (Navigate | Class) and start typing the name of the class. Choose the class from a drop-down list that appears.
 
You can open any file in your project in a similar way by using Ctrl + Shift + N (Navigate | File)

 

No. 2 Ctrl + Space Automatic completion function, equivalent to Ctrl +/in eclipse/

 

[Html] The Code Completion feature lets you quickly complete different kinds of statements in the code. for example, start typing a class name and press Ctrl + Space to complete it. when multiple choices are available, they are shown in the lookup list.

The Code Completion feature lets you quickly complete different kinds of statements in the code. for example, start typing a class name and press Ctrl + Space to complete it. when multiple choices are available, they are shown in the lookup list.

 

No. 4 Ctrl + Q quick query class, function documentation description


[Html] To quickly see the documentation for the class or method used at the editor's caret, press Ctrl + Q (View | Quick Documentation ).

To quickly see the documentation for the class or method used at the editor's caret, press Ctrl + Q (View | Quick Documentation ).

 

The No. 4 Ctrl + B navigation bar displays associated information. You can press Ctrl and click the method to enter the implementation class method.


To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and pressCtrl + B. you may also click the mouse on usages with theCtrl key pressed to jump to declarations.

 

 

 

Ctrl + D back up the information of the selected row (not found in Xcode. Which of the following gods knows how to send me a message? Thank you)


[Html] Ctrl + D in the editor duplicates the selected block or the current line when no block is selected.

Ctrl + D in the editor duplicates the selected block or the current line when no block is selected.

 

 

 

 

Android Studio Shortcut Key Usage,


Project Quick repair ALT + ENTER
Formatting code CTRL + ALT + L (Win)
OPTION + CMD + L (Mac)


View the selected API Information CTRL + Q (Win)
F1 (Mac)


Select a method to view the parameter information CTRL + P
Normal method ALT + Insert (Win)
CMD + N (Mac)


Go to source code F4 (Win)
CMD + down-arrow (Mac)


Delete the entire line of code CTRL + Y (Win)
CMD + Backspace (Mac)


Query Information CTRL + ALT + SHIFT + N (Win)
OPTION + CMD + O (Mac)


Build project CTRL + F9 (Win)
CMD + F9 (Mac)


Build a project and run SHIFT + F10 (Win)
CTRL + R (Mac)


Breakpoint display ALT + 1 (Win)
CMD + 1 (Mac)


Hide the navigation bar ALT + left-arrow; ALT + right-arrow (Win)
CTRL + left-arrow; CTRL + right-arrow (Mac)

 

 

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.