Autoformat code : Cmd + Alt + L
Settings -> Editor -> Code Style -> PHP -> Wrapping and Braces -> Align consecutive assignments
This will replace
$toto = 'test';
$longtoto = 'test';
By :
$toto = 'test';
$longtoto = 'test';
Settings -> Editor -> Code Style -> PHP -> Other -> Align key-value pairs
This will replace
$array = [
'toto' => 'test',
'longtoto' => 'test'
];
By :
$array = [
'toto' => 'test',
'longtoto' => 'test'
];
What about if I want the equal signs to align even though I have a .= like this: