Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation broken in razor files #11117

Open
vsfeedback opened this issue Oct 29, 2024 · 0 comments
Open

Indentation broken in razor files #11117

vsfeedback opened this issue Oct 29, 2024 · 0 comments
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author feature-formatting
Milestone

Comments

@vsfeedback
Copy link

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


[regression] [worked-in:17.12 preview 2]
Since 17.12 preview 3 or 4, razor files are constantly being autoformatted incorrectly.

While typing C# in the @code block, all components in the file will have their indentation changed sporadically. Indentation will change from this:

<InputText Param1="true"
           Param2="some text"
           Param3="Some.Enum" />

to this:

<InputText Param1="true"
Param2="some text"
Param3="Some.Enum" />

This autoformatting seems to be triggered when typing ; or } characters.

Currently my only way around this issue is to write some code, select it all and copy it to the clipboard, ctrl+z everything, and paste the code back (the auto format doesn't appear to ever trigger on paste).


Original Comments

Feedback Bot on 10/28/2024, 06:49 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@dotnet-policy-service dotnet-policy-service bot added untriaged author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author labels Oct 29, 2024
@phil-allen-msft phil-allen-msft added this to the Backlog milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author: migration bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author feature-formatting
Projects
None yet
Development

No branches or pull requests

2 participants