Five eclipse shortcuts required for studying code

Source: Internet
Author: User

"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"

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.