Autoformat code : Cmd + Alt + L
##For equals :
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 -> Javascript -> Other -> Align with multiple 'var' statements and assignments
This will replace
var myLink = {
img: "btn.gif",
text: "Button",
width: 128
},
local = true,
initial = -1;
var selector = "#id";
var color = "red";
var offset = 10;
By :
var myLink = {
img: "btn.gif",
text: "Button",
width: 128
},
local = true,
initial = -1;
var selector = "#id";
var color = "red";
var offset = 10;
##For assignments :
Settings -> Editor -> Code Style -> PHP -> Other -> Align key-value pairs
This will replace
$array = [
'toto' => 'test',
'longtoto' => 'test'
];
By :
$array = [
'toto' => 'test',
'longtoto' => 'test'
];