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

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

I have this text

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

and I would like to

6条回答
  •  旧时难觅i
    2021-02-02 06:32

    A visual update for 2019.1 on Mac:

    Go to PHP Storm > Preferences > Editor > Code Style > PHP > Wrapping and Braces > Assignment Statement > Align consecutive assignments.

    To activate it go to Code > Reformat Code or press Cmd+Opt+L.

提交回复
热议问题