PhpStorm wrap traits

时间:2017-04-06 16:56:46

标签: phpstorm phpstorm-2017.1

In PhpStorm, how would I make traits wrap? Under Editor | Code Style | PHP -> Wrapping and Braces there is no option to wrap traits.

I want to wrap my traits like so:

class Foo {

    use Concerns\SomeTrait,
        Concerns\AnotherTrait;

}

But PhpStorm automatically turns them into a oneliner:

class Foo {

    use Concerns\SomeTrait, Concerns\AnotherTrait;

}

Does any one know where this can be changed?

1 个答案:

答案 0 :(得分:0)

Go to settings/Editor/Code Style/PHP and check the option to keep line breaks when formatting:

enter image description here

相关问题