vscode-csharp
vscode-csharp copied to clipboard
ASP.NET Razor formatter removes duplicate spaces in a string value
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