Skip to content

Expose Typescript insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces rule in VS Code settings #18043

@mdebruijne

Description

@mdebruijne
  • VSCode Version: 1.8.1
  • OS Version: Linux

Typescript has the insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces rule, but this rule cannot be configured in the VS Code settings.

Please add
javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces
and
typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces
to the VS Code settings, to be able to prevent {key: 'value'} being changed to { key: 'value' } when formatting

Thanks!

Metadata

Metadata

Assignees

Labels

formattingSource formatter issuesjavascriptJavaScript support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions