简体   繁体   English

有关Intellij中的基本类,请参阅Javadocs

[英]See Javadocs for basic classes in Intellij

Is there a way to see/attach the Javadocs and/or source code for basic classes (like String) in IntelliJ? 有没有办法在IntelliJ中查看/附加基本类(如String)的Javadoc和/或源代码?

I'm using IntelliJ Community Edition 11.1 我正在使用IntelliJ Community Edition 11.1

When you add new JSDK , sources are configured automatically: 添加新JSDK时 ,会自动配置源:

JSDK Sourcepath

If your JDK installation is missing sources, you will need to download and configure them manually. 如果您的JDK安装缺少源,则需要手动下载和配置它们。 Mac users should refer to this answer . Mac用户应该参考这个答案

When you have sources attached to the JSDK configuration, navigating to the class will open source code instead of decompiled stub and you can also use View | 如果您有源JSDK配置,导航到该类将打开源代码而不是反编译的存根,您也可以使用View | Quick Documentation based on the javadoc in the source files. 基于源文件中的javadoc的Quick Documentation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM