When I use autoformat function in VS Code editor it insert spaces before curly brackets like this:
From:
<Button onClick={this.callMyFunc.bind(this, screenSet.index)}>Add</Button>
To:
<Button onClick={this.callMyFunc.bind(this, screenSet.index) }>Add</Button>
From:
))}
To:
)) }
I can't find option what settings this... Can anyone help me, please?
The code formatting is available in Visual Studio Code through the following shortcuts: On Windows Shift + Alt + F. On Mac Shift + Option + F. On Linux Ctrl + Shift + I.
In 2020, the properties are called this way:
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With