"Eclipse+intellij anti-compilation" Eclipse/intellij idea Anti-compilation view source code and comments

Source: Internet
Author: User

How to use the IDE to view the third-party jar package source code and comments, IntelliJ idea with the anti-compiler, Eclipse installed a plug-in can, can not see the comments on the trouble, can not find the API document it, now finally mastered, the following solutions, for everyone reference, to enhance the development of learning efficiency!

Eclipse

1. Install the anti-compiler (in Eclipse Marketplace search Decompiler install) 2. Download Source Package 2.1 Go to official website Download 2.2 Right-click Maven Project->maven->download Sources (maven will automatically download the corresponding version of the jar package source code) 2.3 Go to maven warehouse download (for example: Maven MySQL Baidu a bit, Must appear the warehouse address, find a version to download the 3.4 maven command download (for MAVEN project), open the command line input in the Pom.xml folder: Mvn dependency:sources4. Associate to the jar package, right-click the project->build path->configure build path...-> Select Java Build Path Libraries tab, locate the appropriate jar package->source Attachment->edit->external location->external File ... Select the corresponding source package can be 5. Move the mouse over the method to stay for a while, you will appear the way the comment prompt.

IntelliJ idea

1. Download the source package (IBID.) 2. Add to Library, click on the Toolbar Module settings icon (Project Structure), Libraries +----java-> Select the jar source package or the source package folder (if Maven project, As long as the source package has been downloaded in the local MAVEN repository, no need for the above configuration) 3. View the method comments, click into the source code, if you want to and eclipse as the mouse pause can appear comment prompt, open method for:preferences->editor-> General->other->show Quick documentation on mouse move hook

Transferred from: http://www.infocool.net/kb/Java/201705/355387.html, ^_^

"Eclipse+intellij anti-compilation" Eclipse/intellij idea Anti-compilation view source code and comments

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.