![](/img/trans.png)
[英]Javascript embedded in Java - How can I go-to-declaration? (Ctrl+B) (Nashorn) (IntelliJ)
[英]Intellij: Javadoc I can't see description of the methods, class in java documentation after ctrl+b
您需要打开File | Project Structure | SDKs
File | Project Structure | SDKs
File | Project Structure | SDKs
, go 到Sourcepath
,并附上这个 JDK 的源代码文件(通常命名为 src.zip)。 在此处查看详细步骤/图像: https://mkyong.com/java/how-to-attach-jdk-source-code-to-intellij-idea/
源代码文件 (src.zip) 通常来自您下载的 JDK 1中的$JAVA_HOME/lib/src.zip
和$JAVA_HOME/src.zip
。
另一种更简单的方法是 go 到File | Project Structure | SDKs
File | Project Structure | SDKs
File | Project Structure | SDKs
,点击+
图标下载一个JDK,默认会配置sourcepath。
@MüseyibƏləkbər 提到的文档路径用于快速文档弹出窗口。 参见https://www.jetbrains.com/help/idea/sdk.html#configure-external-documentation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.