Search code examples
javaintellij-ideaidejavadoc

How to see JavaDoc in IntelliJ IDEA?


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.

enter image description here


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):

    autopopup documentation

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

    on mouse move