Alt + Enter while having caret on such call and choose appropriate option from there.
PhpStorm - Create a method from it's call
-
04-07-2023 - |
質問
For fast class prototyping I'm looking for a way to create methods declaration from it's call.
Example :
I'm writing.
$this->doStuff($action);
Magic happens. Following code is generated :
function doStuff ($action) {
//My cursor is here
}
Is it possible with PhpStorm ?
I saw code extraction implementation, it's nice, but it's not the same. Getters and setters inserting is not the same also, because a class property should be declared initially.
解決
所属していません StackOverflow