Is there way to quickly find constructors of a particular class in IntelliJ IDEA?
Asked
Active
Viewed 1.2k times
26
-
1I 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 Answers
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
-
3I love IntelliJ, but in this matter Eclipse makes a better job, as it displays a C icon for constructors. – Jose Rui Santos Oct 04 '16 at 07:56
-
-
Yes, CLion needs to improve on providing C++ type info. It is missing several aspects that IntelliJ has for Java. There is a whole bunch of related feature requests here you can vote up - https://youtrack.jetbrains.com/issue/CPP-2884. – studgeek May 07 '19 at 22:08
-
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
-
7Note: To see parameter of a constructor, need to **place the cursor in the brackets**, then Crtl+P – Rocherlee Jul 18 '16 at 06:35