douzhantanju1849 2014-08-22 11:20
浏览 212
已采纳

PhpStorm:自动完成时插入参数列表?

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.

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题