4

for example, when I write

foo( bar ){}  

it will be formatted to

foo(bar){}  

how do I make it keep the 2 spaces?

Edit:
This is a different question from How to change indentation in Visual Studio Code?

David C
  • 909
  • 6
  • 13

1 Answers1

3

Putting

 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true

in the settings json solved the problem.

David C
  • 909
  • 6
  • 13