简体   繁体   中英

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!

You need to open the File | Project Structure | SDKs File | Project Structure | SDKs 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 JDK 1 .

Another easier way is to go to File | Project Structure | SDKs File | Project Structure | SDKs 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

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM