Easily align your code.
// from
var easily = 'align';
var your = 'code';
// to
var easily = 'align';
var your = 'code';
Command | Mac | PC and Linux |
---|---|---|
Align code | Ctrl + \ | Alt + Ctrl + \ |
%=
, ?=
, |=
, =>
, etc.)Alignment "=" (Default: right)
Padding "=" (Default: both)
Alignment ":" (Default: left)
Padding ":" (Default: right)
Alignment "=>" (Default: right)
Padding "=>" (Default: both)
// from
var one = "uno",
two="dos",
three ="thres",
four= "quatro";
one = "uno";
two+="dos";
three -="thres";
// to
var one = "uno",
two = "dos",
three = "thres",
four = "quatro";
one = "uno";
two += "dos";
three -= "thres";
// from
var numero = {
one : "uno",
two:"dos",
three :"thres",
four: "quatro"
};
// to
var numero = {
one: "uno",
two: "dos",
three: "thres",
four: "quatro"
};
# from
one = "uno"
two+="dos"
three -="thres"
four?= "quatro"
# to
one = "uno"
two += "dos"
three -= "thres"
four ?= "quatro"
# from
numero =
one : "uno"
two:"dos"
three :"thres"
four: "quatro"
# to
numero =
one: "uno"
two: "dos"
three: "thres"
four: "quatro"
// from
var one = "uno";
two+="dos";
three -="thres";
four*= "four";
// to
var one = "uno";
two += "dos";
three -= "thres";
four *= "four";
// from
var numero = array(
"one" => "uno"
"two"=>"dos"
"three" =>"thres"
"four"=> "quatro"
);
// to
var numero = array(
"one" => "uno"
"two" => "dos"
"three" => "thres"
"four" => "quatro"
);
This package has been fully rewritten and has stripped out array, object, and space alignment.
If you would like to see these come back please submit a issue.