If I press Shift + Alt + F to let VS Code format my JS source code it converts
for(var key in indexObj)
to
for (var key in indexObj)
How can I prevent VS Code to do that?
.jsbeautifyrc
file. Take this one as an examplespace_before_conditional
value to false
.js
are located which you want to format