PtrMar
PtrMar

Reputation: 1

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

Upvotes: 0

Views: 486

Answers (2)

floating cat
floating cat

Reputation: 798

You need to open the File | Project Structure | SDKs, go to the Sourcepath, and attach this JDK's source code file (often named src.zip). See the detailed steps/images here: 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 JDK1.

Another easier way is to go to File | Project Structure | SDKs, click the + icon to download one JDK which would configure the sourcepath by default.

The Documentation paths mentioned by @Müseyib Ələkbər is for Quick Documentation popup. See https://www.jetbrains.com/help/idea/sdk.html#configure-external-documentation

Upvotes: 1

Go "File->Project Structure" and add the source for the documentation

enter image description here

Upvotes: 0

Related Questions