dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
506 stars 196 forks source link

hitting enter inside { } of a html helper in asp.net core cshtml view breaks formatting #10144

Open vsfeedback opened 8 months ago

vsfeedback commented 8 months ago

This issue has been moved from a ticket on Developer Community.


I've attached a screen recording showing the problem.

https://github.com/dotnet/razor/assets/754264/64ad3ef1-e4f8-4205-b4db-f6cd94f2477c


Original Comments

Feedback Bot on 18/02/2024, 05:17 PM:

(private comment, text removed)

Feedback Bot on 19/02/2024, 05:55 PM:

(private comment, text removed)


Original Solutions

(no solutions)

davidwengier commented 8 months ago

Simplified repro:

                    @(Goo.Bar().Baz(new Zig {$$ }))

With the cursor at $$, press Enter.