I would like to know what to change/add to my settings to prevent a space from being added after a "&" and a ";" in xml codes like "&& < >".
Format javascript file with HookyQR.beautifyFile command
function pad3(number) {
var length = 3;
var str = '' + number;
while (str.length < length) {
str = '0' + str;
}
return str;
}
function IsNumeric(input) {
return (input - 0) == input &&
input.length >
0;
}
Expected results
Expected format to
function pad3(number) {
var length = 3;
var str = '' + number;
while (str.length < length) {
str = '0' + str;
}
return str;
}
function IsNumeric(input) {
return (input - 0) == input &&
input.length >
0;
}
NOTE - My project requires that I use xml characters/entities for &&, <, and >. So in my code I must write && for &&. < for < and > for >. When I format a space is added after the "&" (see below) which breaks my code.
Actual results
Details of what happened ...
function pad3(number) {
var length = 3;
var str = '' + number;
while (str.length & lt; length) {
str = '0' + str;
}
return str;
}
function IsNumeric(input) {
return (input - 0) == input & amp; & amp;
input.length & gt;
0;
}
I would like to know what to change/add to my settings to prevent a space from being added after a "&" and a ";" in xml codes like "
&& < >
".Thank you!
User Settings:
Workspace Settings:
.jsbeautifyrc
Action performed
Format javascript file with
HookyQR.beautifyFile
commandExpected results
Expected format to
NOTE - My project requires that I use xml characters/entities for &&, <, and >. So in my code I must write && for &&. < for < and > for >. When I format a space is added after the "&" (see below) which breaks my code.
Actual results
Details of what happened ...