PHPPStorm 9 alignment assignments in PHP

After many searches, it seems like I have no way to align sequential variable assignments in PHP. I can align key / value pairs in arrays, but that.

It also seems that older versions of PHPStorm have it.

Is this possible in PHPStorm 9? If so, how? If not, is it really much better than older versions? I just started using it (from Sublime).

This is an example of unformatted code:

$sExample = 'Example !'; $sAnotherOneHere = 'Again ?'; $sAndTheLast = 'ENOUGH !'; 

And what is the result of the format:

 $sExample = 'Example !'; $sAnotherOneHere = 'Again ?'; $sAndTheLast = 'ENOUGH !'; 
+8
phpstorm
source share
1 answer

The option still exists, and it works flawlessly.

Find it in the Editor → Code Style → PHP → Wrapper and Curly Brackets → Assignment. It is called "Align consecutive assignments."

+23
source share

All Articles