Hirnhamster
Hirnhamster

Reputation: 7389

PhpStorm: Insert parameter list on auto completion?

Is it possible to get the full list of parameters of a function/method via auto completion?

Example:

class foo{

  public function __construct($param1, $param2, $param3 = null){
  }

}

Typing new f and using CTRL+Space to auto-complete, only new foo(); is inserted.

I would like to get new foo($param1, $param2); or (maybe via setting for optional parameters) new foo($param1, $param2, $param3); - Eclipse PDT does this for example.

I couldn't find anything in the docs for Auto-Completing Code or Editor Code Completion.

//edit

Seems not to be possible for the moment, see @LazyOne's answer. Please upvote http://youtrack.jetbrains.com/issue/IDEABKL-6984 and http://youtrack.jetbrains.com/issue/WI-18621 to draw some attention to this feature.

Upvotes: 3

Views: 1023

Answers (1)

LazyOne
LazyOne

Reputation: 165138

Unfortunately it is currently not possible.

You can check these tickets (and those that are marked as related):

As you can see such approach is definitely not a priority in IDEA-based IDEs.

Upvotes: 1

Related Questions