HiveBrain v1.2.0
Get Started
← Back to all entries
snippetjavaCritical

How to see JavaDoc in IntelliJ IDEA?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
howjavadocseeintellijidea

Problem

I just switched from Eclipse to IntelliJ. IntelliJ lacks one feature from Eclipse - when you put your mouse over a method, Eclipse shows javadoc info. I think the way to show it is to use a shortcut - command+J, but when I click it, I get something wrong as on the screen shot below. Please advise me on how I can quickly get javadoc information. I need to at least know what type a method returns.

Solution

Use View | Quick Documentation or the corresponding keyboard shortcut

(by default: Ctrl+Q on Windows/Linux

and F1 on macOS in the recent IDE versions, before was Ctrl+J).

Better ee the documentation for more information.

It's also possible to enable automatic JavaDoc popup on explicit (invoked by a shortcut) code completion in Settings | Editor | General | Code completion (Autopopup documentation):

Yet another way to see the quick doc is on mouse move:

Context

Stack Overflow Q#11053144, score: 725

Revisions (0)

No revisions yet.