Andreas Köberle
Andreas Köberle

Reputation: 110892

Prevent unnecessary white space in Webstorm

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

Answers (1)

CrazyCoder
CrazyCoder

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

Related Questions