"Initialize fields" missing line feed

已回答

Using "Initialize fields" on constructor creates the private field with its docblock properly. However the docblock gets together/joined to the previous field. It seems a line feed is missing. I'm working on a Linux box, PhpStorm (2017.1 Build #PS-171.3780.104)

These two captures illustrates the issue:

0

Hi there,

If you use "Code | Reformat Code..." on that file -- will it add blank line between previous field and PHPDoc for next one?

In any case:

Settings/Preferences | Editor | Code Style | PHP | Blank Lines  Minimum blank lines | Around field -- set it to be 1 (or more) instead of default 0

1

Code / Reformat code has no effect. Setting "Around field" to 1 fixed the issue.

Thanks!

0

请先登录再写评论。