How to invoke method/constructor parameter hint in IntelliJ?

632 views Asked by At

If I write code sequentially, then after I enter some method call and opening parenthesis, I get a hint after delay:

enter image description here

if I discard it or return to the place later, I see no any hint:

enter image description here

How to invoke it without retyping the code?

3

There are 3 answers

0
Brian Agnew On

Ctrl+P will give you a pop-up with the method parameters. Usefully, the parameter corresponding to your cursor position will be highlighted and will change as you move back and forth through the parameters.

Intellij provides a lot of assistance. See here for a summary of what's available.

0
Jet On

I faced the same condition in the earlier days. No need to retype the complete code but just retype the comma(,) intellij is intelligent enough to guess the next variable value and suggest you better. I used this many times so far and made me to save my time in all instances. Hope i was useful.

0
MacGregor On

On Mac the shortcut is ⌘ (Command) + P. It works fine.