1. The left-click Ctrl and F3 are frequently used by most people to view the definition code of variables, methods, and classes jump to the identifier where the cursor is located. When reading by execution process, F3 implements most navigation actions. 2CtrlShiftG searches the workspace for the location where the cursor is referenced. It can be said that it is the opposite of the F3 shortcut. When set by class
1. The left-click Ctrl and F3 are frequently used by most people to view the definition code of variables, methods, and classes jump to the identifier where the cursor is located. When reading by execution process, F3 implements most navigation actions. 2 CtrlShiftG searches in the workspace for the location where the cursor is referenced. It can be said that it is the opposite of the F3 shortcut. When set by class
1. Ctrl + Left click and F3
This is frequently used by most people to view the definitions of variables, methods, and classes.
Jump to the definition code of the identifier where the cursor is located. When reading by execution process, F3 implements most navigation actions.
2 Ctrl + Shift + G
Find the location of the identifier that references the cursor in the workspace. It can be said that it is the opposite of the F3 shortcut. When reading by class definition, you can quickly find out which classes are called by the current class method.
3. Ctrl + O
View the outline of a class and list its methods and member variables. Tip: Try againCtrl + OTo list the methods and variables inherited by this class.
Note: "O" ---> "Outline" ---> "Outline"
4 F4
Open the inheritance tree. Displays the inheritance tree of the current class. Includes not only the parent class, but also the subclass of the current class.
5. Ctrl + T
View the inheritance relationship tree of a class, which is top-down, and pressCtrl + T,The display structure is changed from bottom to top. Unlike the "F4" shortcut, the display mode is different.
Tip: select a method name and press Ctrl + T. You can view the parent class, subclass, and interface of the method with the same name.
Note: "T" -------> "Tree" -----> "Hierarchy Tree"
6. Alt + left and right direction keys
We often encounter situations where we read the code by pressing Ctrl + left-click, trace them layer by layer, and then get lost in the Code. In this case, we only need to press "Alt + Left-direction key" to return to the last read position, similarly, press Alt + right arrow key to move forward
The returned reading position is the same as the browser's forward and backward buttons.
Alt + --> returns the previous reading position. After you use the search or navigation function, you can use the ALT-left arrow to return to the previous reading position, which is also a multi-level historical record. Similar to IE. If you want this rewind function to achieve the best effect
Will be recorded in the history, and will be re-opened next time you move back here.
7. Ctrl + Alt + H
If you want to know whether a class method is called by other classes, select the method name and press Ctrl + Alt + H ", eclipse will display the methods called by this method, and ultimately generate a call relationship tree.
Note: "H" ---> "Hierarchy" ---> "Call level"