Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA mouse over method show Java Doc [duplicate]

I'm using IntelliJ IDEA 9, Is there a way to configure IDEA so that when I pause my mouse over a method, IDEA pulls up the javadoc (the same thing as CTRL+Q does)?

like image 414
Ali Avatar asked Oct 12 '11 11:10

Ali


People also ask

How do I display Javadoc in IntelliJ?

View Javadocs in the editorHover the mouse over the necessary symbol in the editor. Place the caret at the symbol and press Ctrl+Q (View | Quick Documentation). Press Ctrl+Q again to open this documentation in the Documentation tool window.

How do I show documents in IntelliJ?

You can view documentation by placing the caret at a symbol and pressing Ctrl+Q or selecting View | Quick Documentation from the main menu.

How do I view a Javadoc?

To locate the Javadoc, browse to your User folder (on Windows 7 this is C:\Users\*Username*), then browse to sunspotfrcsdk/doc/javadoc. Double click on the index. html file to open it in your default webbrowser.


2 Answers

Just to update, IntelliJ 13.0 is now released and has this feature.

Location in 13.0:

Preferences -> Editor -> Other -> "Show quick doc on mouse move"

Location in 13.1 (and later):

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

You can even set the hover time (in ms) and once the doc pane opens, you can Pin it to one of the sides and it becomes one of the windows, like Console or Terminal. This is very handy, as you just over over and look at the pinned window.

like image 137
fantom Avatar answered Oct 06 '22 03:10

fantom


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.

like image 36
CrazyCoder Avatar answered Oct 06 '22 03:10

CrazyCoder