Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

One of the best feature of Eclipse is that you can learn while coding as it shows the documentation right in the editor by hovering over an API. I really missed that feature in Intellj. As I am new to this platform, may be there is a trick to get that feature that I am not aware of. I appreciate any tip regarding this.

like image 645
Andromeda Avatar asked Sep 15 '13 15:09

Andromeda


People also ask

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 show 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 add Java documents to IntelliJ?

put the cursor on the method name you want to add javadoc ,and then press alt + enter, there will be an add javadoc option in the popup. If the method already has a javadoc,then there will be no add javadoc option.


1 Answers

Simple docs will appear if you hold ctrl when you hover. To make proper docs appear just on hover (like eclipse) in IntelliJ v14.0:

File > Settings... > Editor > General > [Other]

Then at the very bottom there is an option: "Show quick documentation on mouse move":

enter image description here

The docs will now appear on hover:

enter image description here

like image 179
matt burns Avatar answered Sep 30 '22 05:09

matt burns