"If you are doing well, you must first sharpen the tool." Thanks to eclipse,SheLet's read a big projectCodeIt is easier. During the reading process, I found that mastering several eclipse shortcut keys will make the reading experience smoother. Please write it out and share it with Zhu Jun.
1. CTRL + Left click
This is frequently used by most people to view the definitions of variables, methods, and classes.
2. CTRL + O
View the outline of a class and list its methods and member variables.Prompt: One more timeCTRL + OTo list the methods and variables inherited by this class.
Note: "O" ---> "outline" ---> "outline"
3. 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.
Prompt: 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"
4. 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, pressing "Alt + right arrow key" will move to the returned reading position, just like the browser's forward and backward buttons.
5. 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"