Search code examples
javaintellij-ideajavadoc

missing javadoc detail in intelliJ


Just switch the IDE from Eclipse to intelliJ, when I use ctrl+q to try to pop up more explainations for the method, it shows no details like this. How can I fix it to get same information as Eclipse does?

enter image description here


Solution

  • This is because you didn't set Java source path in the project structure dialog.

    Go to File > Project Structure and select SDKs from the left side. Then select your project JDK level (In your case it should be 1.8) and add JDK source path in Sourcepath tab.

    Usually it should be named as src.zip and placed inside your JDK folder.

    enter image description here