134

When I am coding at Netbeans it autocompletes the code and show Javadocs. However when I am using Intellij IDEA if I click Ctrl+Space I can see the auto-complete and if I click Ctrl+Q I can see the javadoc seperately.

Is it possible to see the Javadoc of element whenever I see auto-complete or click Ctrl+Space at Intellij IDEA as like Netbeans?

kamaci
  • 72,915
  • 69
  • 228
  • 366

3 Answers3

167

Settings | Editor | General |Code Completion | Autopopup documentation in (ms).

Settings screenshot

UPDATE: latest versions have an option to show JavaDoc on mouse move.

Community
  • 1
  • 1
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • It's OK. When I click ctrl + space it shows both code completion and javadoc. However when I don't click ctrl + space it autocomplets but doesn't show javadoc? – kamaci Oct 29 '11 at 08:07
  • Yes, this behavior is by design, when automatic completion is invoked, JavaDoc is not shown. – CrazyCoder Oct 29 '11 at 09:50
  • 3
    It would be nice if it was possible to see both javadoc and code completion, thanks. – kamaci Oct 29 '11 at 17:17
  • 13
    I added it as a request: http://youtrack.jetbrains.net/issue/IDEA-76223?projectKey=IDEA – kamaci Oct 29 '11 at 17:31
  • 1
    @kamaci : it works also without code completion, on mouse over : see http://stackoverflow.com/a/22759295/1677594 (*show quick doc on mouse move*) – Guillaume Husta May 13 '14 at 13:07
  • Still accurate ten years later, if someone's wondering. – mcont Jan 21 '21 at 11:01
14

Show Javadoc in IntelliJ IDEA 14:

  • When you write code:

    File -> Settings -> Editor -> General -> Code Completion -> Autopopup documentation in (ms)

It's only available when you press CTRL+SPACE It's more usable if you select the pin icon when it popups. The documentation window will be added to the tabs on the right. Later on I recommend to resize the window and to uncheck the Pinned property.

  • On mouse hover:

    File -> Settings -> Editor -> General -> Show quick documentation on mouse move

Tonatio
  • 4,026
  • 35
  • 24
14

File -> Settings -> Editor -> Code completion.

Check Autopopup documentation in (ms) and choose delay.

Lukasz Stelmach
  • 5,281
  • 4
  • 25
  • 29
Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674