I really don't see any reason for setting the indentation differently than the Editor settings. So maybe the indentation settings should be removed from "JavaScript Formatter Settings" and instead use the Editor indentation settings?
Bug 1: Also if I click the "Indent Size" arrows rapidly in "JavaScript Formatter Settings", I get an error alert (Probably because the preview is still rendering).
Bug 2: The Break before/after brackets settings seems to be ignored.
Example. I have a simple code snippet that looks like this:
- Code: Select all
var waitTimerID = setInterval(function() {
// code here
});
Then I run the JavaScript formatter with NONE of the "Break" checkboxes checked, and ends up with this:
- Code: Select all
var waitTimerID = setInterval(function()
{
// code here
}
);
Which is clearly wrong, as I DIDN'T want it to break before/after the brackets.
And if I check all the "Break" checkboxes, I end up with the exact same result.