vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

ASP.NET Razor formatter removes duplicate spaces in a string value

Open RomanKoff opened this issue 4 months ago • 2 comments

Type: Bug

Issue Description

If you specify multiple spaces in a row in the value of a string variable and apply code formatting, the double spaces will be replaced with a single space. This is unacceptable.

Before: var s1 = " test test ";

After formating: var s1 = " test test ";

https://github.com/user-attachments/assets/1422da2d-07e8-4b71-8d58-3659ced767c2

RomanKoff avatar May 30 '25 11:05 RomanKoff