문제

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.

도움이 되었습니까?

해결책

Alt + Enter while having caret on such call and choose appropriate option from there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top