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:
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.
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.
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.
It's a known limitation, please vote for this feature request in YouTrack (it's 4 years old!).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With