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