Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Javadoc with Autocomplete Parameter Information in Intellij

In Eclipse, when you're about to enter parameters for a method, the auto-complete will display all possible combinations as well as the Javadoc associated with each of them. This can also be triggered manually.

I'm trying to get Intellij to display the same information but I can only get it to display the shortened parameter information via Control-P. Is there a way to display the corresponding Javadocs as well?

For the example below, in Eclipse, you can get the Javadoc for each of the different Date constructors to show up before entering anything. But in Intellij, I can only get the JavaDocs to display after entering ALL of the parameters then performing a Control-Q on the method. I can't get the Javadocs to display while typing.

In this case, it's trivial but sometimes the parameter names are not labeled so Javadocs are nice to help pick which overloaded method you want.

Eclipse:

Eclipse

Intellij:

Intellij

like image 259
Wei Avatar asked Sep 13 '12 19:09

Wei


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 get auto suggestions on IntelliJ?

I have tried the following according to this thread (Intellij IDEA CE 12 Android XML Code Completion not working): Go to File->Power Save Mode and disable it - it is off. Go to Preferences->Editor->Code Completion and check Autopopup code completion - this has been checked.

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

It's a known limitation, please vote for this feature request in YouTrack (it's 4 years old!).

like image 68
CrazyCoder Avatar answered Sep 21 '22 19:09

CrazyCoder


Maybe you're looking for this new feature to appear in IntelliJ 2018.2, Go to Settings | Editor | General | Code Completion and open Show the documentation info popup in... options, I just solved this problem with the new version.

like image 45
kaitian Avatar answered Sep 20 '22 19:09

kaitian