Warm tip: This article is reproduced from stackoverflow.com, please click
intellij-idea java javadoc

Intellij IDEA not showing full javadoc in small window

发布于 2020-04-09 22:57:48

I remember that it was possible to see full javadoc in little window on hotkey in Eclipse some time ago (I used Eclipse Java two years ago). How can I see full javadoc in Intellij IDEA via hotkeys (Ctlr+Q of course, because I am using Ubuntu) or/and on mouse over? I see only function parameters and specified class information that I know, but I want to see a lot of description text from real Java documentation. I mean that small window with javadoc should contain this:

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...

... etc. But I don't see this content.

Intellij IDEA javadoc not showing

Questioner
nick
Viewed
91
Eugene 2020-02-02 10:25

Most probably you ended up with JDK sources removed from your project. To resolve the issue go to Project Settings > Platform Settings > SDK > Sourcepath, navigate to your JDK installation and add its src.zip to the project.

Use the following image as a reference.

enter image description here