How to view source code in eclipse (such as objects)

Source: Internet
Author: User

Today suddenly want to see the source of objects, the result has failed, summed up a bit, posted out.

General view of the source code flow:

  1. Use the shortcut key ctri+shit+t the dialog box that appears open type, enter the class name directly inside, the carriage return is OK;
  2. In the edit box for Eclipse, select or type the name of the class you want to find, and then hold down CTRL while you click the left mouse button.

Find a method in the class, you can find the outline directly on the right side of Eclipse, and then find the corresponding method by pulling the drop-down bar, and the other is to find the corresponding method through the shortcut key Ctrl+o.

Using one of the general processes if the page that appears does not find the corresponding class, you can click Attach source in the current page, and then check external location to find the corresponding src.zip. Here Src.zip is in the JDK installation path under LIB, which will be based on the installation path of their JDK to find.

How to view source code in eclipse (such as objects)

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.