Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm code templates

I am trying to customize default setter template in PHPStorm.

I want to add return $this; line into setter template, but a blank line I inserted into template is ignored by editor How can I insert a blank line before return statement in setter template?

like image 326
mgrinko Avatar asked Nov 07 '13 12:11

mgrinko


1 Answers

Enable option "Blank line before return statement" in: Settings -> Code Style -> PHP -> Other

like image 59
bm13kk Avatar answered Dec 20 '22 05:12

bm13kk