Reputation: 644
Is there a shortcut for PhpStorm (or other JetBrains IDE, they're likely to be the same) that will automagically fill in default parameter values for method calls?
IE, I'm typing in:
$form->generateSelectBox("weekly_snapshot_id", "Weekly snapshot", ...loads of default values here..., "value I actually wanted to set");
and I'd actually just like to type:
$form->generateSelectBox("weekly_snapshot_id", "Weekly snapshot");
put the cursor inside the argument list and hit CTRL + WHATEVS and get ...loads of default values here... automagically completed for me.
Haven't found anything in the dox, google or previous questions that might do this, some tantalising hints about IntelliJ plugins that did this out there but nothing for PhpStorm specifically.
Screenshot as requested: (I select 'params' not cust_id)
Upvotes: 0
Views: 455
Reputation: 3557
You'll be able to do that via Ctrl+Space suggestion list starting PhpStorm version 2019.2: https://youtrack.jetbrains.com/issue/WI-45683
Upvotes: 1