Intellij Show Javadocs Tooltip on Mouse Over

IntelliJ show JavaDocs tooltip on mouse over

For IntelliJ 13, there is a checkbox in Editor's page in IDE Settings

Sample Image

EDIT: For IntelliJ 14, the option has been moved to Editor > General page. It's the last option in the "Other" group. (For Mac the option is under the menu "IntelliJ Idea" > "Preferences").

EDIT: For IntelliJ 16, it's the second-to-last option in Editor > General > Other.

EDIT: For IntelliJ Ultimate 2016.1, it's been moved to Editor > General > Code Completion.
Sample Image

EDIT: For IntelliJ Ultimate 2017.2, aka IntelliJ IDEA 2017.2.3, there are actually two options:

  1. In Editor > General > Other (section) > Show quick documentation on mouse move - delay 500 ms
  • Select this check box to show quick documentation for the symbol at caret. The quick documentation pop-up window appears after the specified delay.
  1. In Editor > General > Code Completion (sub-item) > Autopopup documention in 1000 ms, for explicitly invoked completion
  • Select this check box to have IntelliJ IDEA automatically show a pop-up window with the documentation for the class, method, or field currently highlighted in the lookup list. If this check box is not selected, use Ctrl+Q to show quick documentation for the element at caret.
  • Quick documentation window will automatically pop up with the specified delay in those cases only, when code completion has been invoked explicitly. For the automatic code completion list, documentation window will only show up on pressing Ctrl+Q.

EDIT: For IntelliJ Ultimate 2020.3, the first option is now located under Editor > Code Editing > Quick Documentation > Show quick documentation on mouse move

How to make Intellij show Eclipse like API documentation on mouse hover

You can edit the idea.properties found in the bin folder of IntelliJ application and add this line:

auto.show.quick.doc=true

This will give you the JavaDoc when hovering over a variable:

Sample Image

IntelliJ IDEA mouse over method show Java Doc

There is no such feature right now, feel free to vote for the existing enhancement request.

As stated in the comments, one can write a plug-in that will add this functionality.

Edit
Since this is the first hit on Google about this I would like to add that Edolsa's answer here is the correct solution as of January 2014.

Intellij doesn't show documentation in mouse hover

Go to File->Settings->Editor->General->Other and check Show quick documentation on mouse move.
That should do it. Hope it helps.

Is it possible to enable text wrapping in Intellij Idea JavaDoc tooltip?

I've submitted this problem to YouTrack, feel free to vote:

  • IDEA-169414 Method signature is not wrapped in JavaDoc

Intellij ide tooltip not showing description on hover

IntelliJ IDEA extracts documentation from the JavaDoc comments:

Sample Image

For Date class IDEA shows nothing because the class does not provide a JavaDoc comment (you could open the implementation by pressing Ctrl+B).

IDEA allows you to show the online documentation. This could be enabled in the Project Structure window:

Sample Image

And then IDEA will show you online documentation for the selected class:

Sample Image

You could also download the offline documentation and attach it by pressing the plus sign.

How to keep a PMD tooltip displayed in Intellij IDEA?

There is no such setting. Neither in PMD plugin or in IntelliJ IDEA currently. In IDEA you can set just initial delay before showing tooltips but not the duration.

The easiest way of reading details on the issue instead of tooltip is right clicking the issue and selecting 'Details'

Sample Image

It will redirect you to the webpage describing the type issue and the reasoning behind why it is bad, such as here:

https://pmd.github.io/pmd-5.8.1/pmd-java/rules/java/design.html#UseUtilityClass

Compared to the tooltip there is even more information about the issue such as detailed code samples.

How to see JavaDoc in IntelliJ IDEA?

Use View | Quick Documentation or the corresponding keyboard shortcut (by default: Ctrl+Q on Windows/Linux and Ctrl+J on macOS or F1 in the recent IDE versions). See 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

Getting info about a Class in IntelliJ IDE by hovering over it

You can press CTRL + Q when hovering above a class name to show a popup with more information.



Related Topics



Leave a reply



Submit