How to determine constructor parms or open a class file
If I want to instantiate a new class, but don't know the parameters for the constructor, is there an easy to find out what those parameters are?
Also, if one clicks on (or highlights) a class file, is there an easy way to open it so one can see its contents (or see what parameters its constructor takes)?
Please sign in to leave a comment.
Hello Rich,
RD> If I want to instantiate a new class, but don't know the parameters
RD> for the constructor, is there an easy to find out what those
RD> parameters are?
Press Ctrl-P after typing the opening brace of the constructor call:
new String(
RD> Also, if one clicks on (or highlights) a class file, is there an
RD> easy way to open it so one can see its contents (or see what
RD> parameters its constructor takes)?
Goto Declaration (Ctrl-B, Ctrl-click).
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Rich,
RD> If I want to instantiate a new class, but don't know the parameters
RD> for the constructor, is there an easy to find out what those
RD> parameters are?
RD>
RD> Also, if one clicks on (or highlights) a class file, is there an
RD> easy way to open it so one can see its contents (or see what
RD> parameters its constructor takes)?
To get acquainted with the basic features of IntelliJ IDEA, you can browse
our Tips of the Day (Help | Tip of the Day...). They contain short descriptions
and examples for many useful features.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks much!!!