简体   繁体   English

Intellij:Javadoc 在 ctrl+b 后我看不到方法的描述,class 在 java 文档中

[英]Intellij: Javadoc I can't see description of the methods, class in java documentation after ctrl+b

I can't see description of the methods, class in java documentation after clicking ctrl+b in Intellij.在 Intellij 中单击 ctrl+b 后,我看不到方法的描述,java 文档中的 class。 How can I turn it on or should i update my doc?我怎样才能打开它或者我应该更新我的文档?

Screenshots:截图:

Without description无说明

I would like to have something like this我想要这样的东西

Thank you in advance!先感谢您!

You need to open the File | Project Structure | SDKs您需要打开File | Project Structure | SDKs File | Project Structure | SDKs File | Project Structure | SDKs , go to the Sourcepath , and attach this JDK's source code file (often named src.zip). File | Project Structure | SDKs , go 到Sourcepath ,并附上这个 JDK 的源代码文件(通常命名为 src.zip)。 See the detailed steps/images here: https://mkyong.com/java/how-to-attach-jdk-source-code-to-intellij-idea/在此处查看详细步骤/图像: https://mkyong.com/java/how-to-attach-jdk-source-code-to-intellij-idea/

The source code file (src.zip) often comes from $JAVA_HOME/lib/src.zip and $JAVA_HOME/src.zip from your downloaded JDK 1 .源代码文件 (src.zip) 通常来自您下载的 JDK 1中的$JAVA_HOME/lib/src.zip$JAVA_HOME/src.zip

Another easier way is to go to File | Project Structure | SDKs另一种更简单的方法是 go 到File | Project Structure | SDKs File | Project Structure | SDKs File | Project Structure | SDKs , click the + icon to download one JDK which would configure the sourcepath by default. File | Project Structure | SDKs ,点击+图标下载一个JDK,默认会配置sourcepath。

The Documentation paths mentioned by @Müseyib Ələkbər is for Quick Documentation popup. @MüseyibƏləkbər 提到的文档路径用于快速文档弹出窗口。 See https://www.jetbrains.com/help/idea/sdk.html#configure-external-documentation参见https://www.jetbrains.com/help/idea/sdk.html#configure-external-documentation

Go "File->Project Structure" and add the source for the documentation Go “文件->项目结构”并添加文档源

在此处输入图像描述

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

相关问题 Java中嵌入的Javascript-如何进行声明? (Ctrl + B)(Nashorn)(IntelliJ) - Javascript embedded in Java - How can I go-to-declaration? (Ctrl+B) (Nashorn) (IntelliJ) Ctrl+B 键盘绑定如何工作? - How does Ctrl+B keyboard binding works? 如果我未能为公共字段和方法提供JavaDoc描述/注释,如何让IntelliJ给我一个警告? - How do I get IntelliJ to give me a warning if I have failed to provide JavaDoc description/annotation for public fields and methods? 我在Eclipse中看不到Android SDK javadoc - I can't see Android SDK javadoc in Eclipse 看不到 javadoc 信息。 我如何解决它? - Can't see javadoc information. How do I fix it? IntelliJ 无法关联 javadoc 和依赖源 - IntelliJ can't associate javadoc and sources for dependencies 为什么我不能在 IntelliJ 中选择新的 Java 类? - Why can't I select new Java class in IntelliJ? Java:如何使用Javadoc创建外观漂亮的类文档? - Java: How can I create good looking class docs with Javadoc? 如何使用存储在辅助类中主类中的Strings值? (有关详细信息,请参见描述。Java) - How can I use the Strings values stored in a main class in my secondary class? (see description for details. Java) 将 Java 项目克隆到 IntelliJ ,现在我看不到任何源文件 - Cloned a Java project to IntelliJ , now I can't see any source files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM