-
Notifications
You must be signed in to change notification settings - Fork 12.8k
tsx attribute formatting removes bracket spacing #10872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Fixed
A PR has been merged for this issue
VS Code Tracked
There is a VS Code equivalent to this issue
Comments
VSCode should support |
Issue added to September milestone on VS Code's side. |
as noted by @saschanaz, this already fixed in #9361. You will need to specify the formatting option |
the VSCode setting would be: "typescript.format.InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Fixed
A PR has been merged for this issue
VS Code Tracked
There is a VS Code equivalent to this issue
From @bookman25 on September 9, 2016 18:8
Steps to Reproduce:
<input value={ this.state.value } />
Expected behavior:
In 1.8.10 the spacing inside the brackets was unchanged on format operation (closing bracket
}
or format document).<input value={ this.state.value } />
Actual behavior:
In 2.* the space inside the brackets is always removed when formatting.
Looks like it might be related to: #9361
Copied from original issue: microsoft/vscode#11791
The text was updated successfully, but these errors were encountered: