how to align text to specific character in phpstorm or webstorm?

前端 未结 6 1146
南笙
南笙 2021-02-02 06:07

I have this text

$test1 = \'testing1\';
$test1test1 = \'testing1\';
$test1test1test1 = \'testing1\';
$test1 = \'testing1\';

and I would like to

6条回答
  •  粉色の甜心
    2021-02-02 06:55

    formatting option in phpstorm 8

    settings > Code Style > php > Wrapping and braces

    enter image description here

    check both option Align fields in option and Align Constant

    now you can get what you want! :)

    Source Jetbrains Blog

提交回复
热议问题