PhpStorm: include parameter list on auto-completion?
Is it possible to get a complete list of function / method parameters using auto-completion?
Example:
class foo{
public function __construct($param1, $param2, $param3 = null){
}
}
Input new f
and use CTRL+Space
for autocomplete, inserted only new foo();
.
I would like to get new foo($param1, $param2);
or (perhaps via a tweak for more options) new foo($param1, $param2, $param3);
- Eclipse PDT does this for example.
I didn't find anything in the docs for Autocomplete Code or Completing Editor Edits .
//edit
It seems like this is not possible at the moment, see @ LazyOne's answer . Please refrain from http://youtrack.jetbrains.com/issue/IDEABKL-6984 and http://youtrack.jetbrains.com/issue/WI-18621 to take note of this feature.
source to share
Unfortunately, this is currently not possible.
You can check these tickets (and the ones marked as relevant):
- http://youtrack.jetbrains.com/issue/WI-18621
- http://youtrack.jetbrains.com/issue/WI-24156
- http://youtrack.jetbrains.com/issue/WI-6000
- http://youtrack.jetbrains.com/issue/IDEABKL-6984
- http://youtrack.jetbrains.com/issue/IDEABKL-5575
As you can see, this approach is definitely not a priority in the IDE.
source to share