How to create a shortcut to make spaces equal between assignments?
Ex:
$nome = "Maria Ferreira";
$telefone = "99645876";
To
$nome = "Maria Ferreira";
$telefone = "99645876";
How to create a shortcut to make spaces equal between assignments?
Ex:
$nome = "Maria Ferreira";
$telefone = "99645876";
To
$nome = "Maria Ferreira";
$telefone = "99645876";
Natively I do not know which shortcut to do this.
But I use the extension Better Align
that does just that and you can set the shortcut you want on your keyboard. link
Go to File > Preferences > Keyboard Shortcuts
And create your shortcut like this:
{ "key": "ctrl+alt+i", "command": "wwm.aligncode",
"when": "editorTextFocus && !editorReadonly" }
The above link has full documentation.
To indent the code, use Alt + Shift + F .