Intellij IDEA 没有在小 window 中显示完整的 javadoc

Intellij IDEA not showing full javadoc in small window

我记得前段时间在 Eclipse 的热键上的小 window 中可以看到完整的 javadoc(我两年前使用 Eclipse Java)。如何通过热键在 Intellij IDEA 中查看 full javadoc(当然是 Ctlr+Q,因为我使用的是 Ubuntu)or/and 鼠标悬停?我只看到我知道的函数参数和指定的class信息,但我想看到很多来自真实Java documentation的描述文字。我的意思是带有 javadoc 的小 window 应该包含这个:

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

In the foregoing description, the notation sgn(expression) designates the mathematical signum function...

...等等。但是我没有看到这个内容。

你是说Ctrl+Q+Q吗?


另请注意,您可以添加 {@inheritDoc} 以将 JavaDoc 继承到重写的方法中。类似于:

/**
 * {@inheritDoc}
 */
@Override
public int compare(Circle c1, Circle c2)

很可能您最终从项目中删除了 JDK 源。要解决此问题,请转到“项目设置”>“平台设置”>“SDK”>“源路径”,导航到您的 JDK 安装并将其 src.zip 添加到项目中。

使用下图作为参考。