Reputation: 110892
Is there a way to delete unnecessary white space,two space instead of one for example, when auto formatting a JavaScript file in Webstorm
before
function test () {
return 'test' ;
}
after
function test() {
return 'test';
}
Upvotes: 1
Views: 836
Reputation: 401877
At the moment it's formatted to:
function test() {
return 'test';
}
As I can see the only problem is with the number of spaces after return
. I've created a new issue for it, please star/vote. If you find other cases where formatting doesn't work as expected, feel free to report them directly to YouTrack.
Upvotes: 2