26

Is there way to quickly find constructors of a particular class in IntelliJ IDEA?

Eugene
  • 59,186
  • 91
  • 226
  • 333
  • 1
    I want to do this all the time! But sadly, if the two answers here are all we have, then we really don't have a solution (the given answers provide way more info than just the constructors, sigh). – SMBiggs Mar 24 '19 at 22:00

2 Answers2

22

You can use ctrl + F12. This will show all members of the current class in a popup window, then you can select the constructor easily.

Command + F12 on Mac

gitness
  • 112
  • 1
  • 8
Semih Yagcioglu
  • 4,011
  • 1
  • 26
  • 43
17

I generally use the "Parameter Info" Keymap to show all options for a constructor.

If you type out the initial skeleton (new ConstructorClass()) and place the cursor in the brackets, the Parameter Info command will show all possible parameters for all overloaded constructors. This also works for overloaded methods.

N.B. My IntelliJ settings have Ctrl+p as the keymap for "Parameter Info". You will have to check your settings for your mapping.

Richard
  • 9,972
  • 4
  • 26
  • 32