nick
nick

Reputation: 196

Intellij IDEA not showing full javadoc in small window

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

Upvotes: 1

Views: 519

Answers (2)

Yevgen
Yevgen

Reputation: 1657

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

Upvotes: 1

Eng.Fouad
Eng.Fouad

Reputation: 117589

Do you mean Ctrl+Q+Q?


Also note that you can add {@inheritDoc} for inheriting JavaDoc to the overridden methods. Something like:

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

Upvotes: 0

Related Questions