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'
];
Did update section for javascript : https://gist.github.com/matyo91/d4f7e34fbe8eb67b02d7e93c609eadbd