Display Javadoc with Autocomplete Parameter Information in Intellij - autocomplete

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:

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.

Related

How to change standard value of GDB debugger in eclipse-cdt programmatically

I am a completely newbie in Eclipse and in Eclipse-CDT in particular, so I ask for your help.
In
Window->Preferences->C/C++->Debug->GDB
we have standart value "gdb" in the "GDB Debugger" field.
I want to change this value. I mean, I have a plugin which should change the value "gdb" at the beginning of the plugin's run.
But I don't know which plugins fill the field "GDB Debugger" and other field.
Can you help me? Can you describe the mechanism of launching and what methods are filled by these fields? Or give me some links where I can find suitable information.
Here is a picture of Window->Preferences->C/C++->Debug->GDB:
Use Plugin Spy to find which plugin contributes to UI.
GDB Debugger field is created inside GdbDebuggerPreferencePage

Scala IDE doesn't show documentation during autocomplete hints

I can't see any documentation when I press "Ctrl + space" to see all the available functions.
For instance, in a Java class I can see the javadoc associated with each method:
But when I try to view the same information in a Scala worksheet, I can't see anything:
However, if I make a hover with my mouse over the method once it has been written I can see the documentation:
This behaviour is very annoying. Does anyone know how to do it in scalaIDE? Do I need to configure anything?
Perhaps you are using a non built-in compiler. In my case I was using as an installed compiler scala-2.12.0-M5.
If that is the case, try using a built-in one.
See also my last comment to the previous answer.
The new version should have the scaladoc integration working. Can you check if the Scala->Run Setup Diagonostics window and see if the two JDT options are checked?
ScalaIDE

Making Eclipse Plugins: How to open class declaration from String e.g. "java.is.Good"

I want to make a tool like this:
"java.is.Good.toString()" I want to search this String and jump to the Good.toString() method body.
how to active this?
I can read sourcecode of eclipse, but know nothing about eclipse plugins development, so please give me some guide just like:
THE KEY METHOD
org.eclipse.jdt.core.search.MethodDeclarationMatch
[I can't find where to turn a String path to a JavaElement for search]
THE KEY SAMPLE
[I can't find the eclipse "navigate->open declaration" sourcecode]
try eclipse plug-in spy tools to find existing function codes and description.
As the jdt, there are many api for users to do such things like find a JavaElement by string name.
However, it's a pity that few people are familiar to this part and all depends on you.
Good luck.
The same functionality (Open Type under Cursor, Open File under Cursor) gives plugin called AnyEdit Tools (update site: http://andrei.gmxhome.de/eclipse/). Look into its sources or just use it.
P.S. Useful hotkeys for plugin development/hacking:
Shift+Alt+F1 - Plugin Selection Spy, shows detailed information about current window/editor/selection (contributing plugin, classes, selection etc.)
Shift+Alt+F3 - Show Contributing Plug-in, shows which plugin has contributed active window

how modify the already installed content-assist?

First of, how can I see what plugin manages the CTRL + SPACE content-assist? And how can I modify it in other to add my own stuff. Any help/idea is gladly welcome.
Thanks.
I think you're looking for "Templates". Assuming you're using Java, this is in the Windows -> Preferences menu, then Java->Editor->Templates. For example, the screenshot below shows the CTRL-SPACE content assist when you type "sysout".
If i would have this task, I would go to preferences. Look for content assist settings. Write down some specific text you see in dialog box. Then go to plugins folder, and start to search inside archives. When match is present, open the plugin.xml of that plugin, and you will see the extension points of the plugin. Based on its name, I am pretty sure you will find the appropiate one. Then you can either google it, or look for plugins extending the extension point. Using JDGui or fetching source code of the extension example plugin will help you in disassembling. Eclipse usually not well documented as for extension points, so i do it this way.

How do I use IntelliJ to auto-complete method parameters?

A feature in Eclipse that I really miss is how you can auto-complete method parameters with currently in-scope variables. This feature will, with a single key combo (ctrl+space) fill in all method parameters. As long as my variables were named similarly to the method parameters, I never had a problem with this auto-complete. Is there a plugin or a native way to accomplish this in Intellij?
You might already know that IntelliJ IDEA has the CTRL+P shortcut (Windows) and CMD+P (OX X) that brings up a brief description of which parameters are passed to the method. It's very handy and saves a lot of time that otherwise would have been spent looking up the method declaration.
IntelliJ IDEA 9 now supports what they call "super completion" which matches the behavior you are looking for and is available through their early access program.
(source: jetbrains.com)
IntelliJ IDEA 8 does not allow you to autocomplete more than one parameter at a time. You are forced to use Control-Shift-Space once for each parameter.
Control-Shift-Space (and the completion is based on type, not name)
For more goodness: Help -> Default Keymap Reference
There is also an IntelliJ plugin called 'kotlin-fill-class' that will fill in some default values automagically. Tested the latest snapshot version of the plugin with IntelliJ 2019.1 and it appears to be working.
from this post: https://stackoverflow.com/a/55160515/405749:
The plugin https://plugins.jetbrains.com/plugin/8638-auto-filling-java-call-arguments at least will provide a smart fix to do it when pressing alt+enter.
I have not found a away to do this completely automatically as it works in eclipse.