当我在VS代码编辑器中使用autoformat函数时,它在大括号之前插入空格,如下所示:
从:
<Button onClick={this.callMyFunc.bind(this, screenSet.index)}>Add</Button>
至:
<Button onClick={this.callMyFunc.bind(this, screenSet.index) }>Add</Button>
从:
))}
至:
)) }
我找不到选项这个设置...请问有人能帮帮我吗?
尝试将此设置为您的用户设置:
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
也许这也是
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
尝试将此设置为您的用户设置:
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
也许这也是
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
在首选项中,您应将其设置为 true
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true
似乎尽管有这些配置设置,它还没有 支持的 在 VSCode。 :(