Dims
Dims

Reputation: 51229

How to invoke method/constructor parameter hint in IntelliJ?

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?

Upvotes: 3

Views: 700

Answers (3)

MacGregor
MacGregor

Reputation: 131

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

Upvotes: 1

Brian Agnew
Brian Agnew

Reputation: 272397

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.

Upvotes: 3

Jet
Jet

Reputation: 3298

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.

Upvotes: 1

Related Questions