Reputation: 1
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:
I would like to have something like this
Thank you in advance!
Upvotes: 0
Views: 486
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
Reputation: 121
Go "File->Project Structure" and add the source for the documentation
Upvotes: 0