Glide
Glide

Reputation: 21245

IntelliJ shortcut to auto complete parameters for overloaded methods?

If I have the following methods:

void foo(int one, int two, int three, int four){
   foo(|
}

void foo(int one, int two, int three, int four, int five) {
   // do something
}

And my cursor is where the | is at. Is there a shortcut to tell IntelliJ to autocomplete the parameters to pass into foo(one, two, three, four, null)?

Upvotes: 0

Views: 299

Answers (1)

ice1000
ice1000

Reputation: 6569

image

No special handling is needed, Ctrl+Space will give you the completion shown above.
All you have to do is to select your expected completion.

Upvotes: 2

Related Questions