Skip to content

formatOnType breaks raw strings #1781

@brettcannon

Description

@brettcannon
z = r""
z = rf""
z = R""
z = RF""

becomes:

z = r ""
z = rf ""
z = R ""
z = RF ""

Note the space separating the string prefix and the string literal.

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions