I'm using phpstorm code > Generate... > constructor
to get:
function __construct()
{
}
But I want:
public function __construct()
{
}
How can I change the template? Can't find anything and I don't want to use live templates instead (I like the generate function).
How can I change the template?
You cannot. There is no template for constructor unfortunately.
http://youtrack.jetbrains.com/issue/WI-16548
Follow this ticket (star/vote/comment) to get notified on progress.
You can do this by opening the preferences window. In there you'll find "File and Code Templates". On the code tab you can adjust all templates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With