Eclipse usage and tips 10: Show Code outline

Source: Internet
Author: User

To quickly find a method or scope in a file, you can use Ctrl + O or Ctrl + F3 to quickly display the outline of the current Code and perform quick search. The effect is as follows:


Here we will mainly add some follow-up operations to facilitate our search.
Step 1: press Ctrl + O or Ctrl + F3 again to display the parent class method:

Step 2: sort. In the displayed method, Green indicates the public method, yellow indicates the protect method, blue indicates the package method, and red indicates the class private method. These are sorted by code by default. Sometimes we need to quickly find some methods based on the method type. For example, to find a widget interface in the framework, we need to quickly find the public method, you can also check whether the widget implements a function used internally. You need to check the private method. In this case, you can click the inverted triangle in the upper-right corner to sort the outline:

After sorting, the method will be categorized based on the permission of the method, and then sorted alphabetically by the method name, which is more convenient.

 

In the previous article, eclipse usage and technique 9: automatically add try/Catch Block 2:

Http://blog.csdn.net/ts1122/article/details/8933196

In the next article, the usage and skills of eclipse 11 are shown in the following column:

Http://blog.csdn.net/ts1122/article/details/8953313

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.