Skip to content

HTML code indentation in Blazor is not working properly #12914

@vsfeedback

Description

@vsfeedback

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


In the new version, there seems to be a problem with automatic indentation. I've attached a screenshot. This page indented correctly in the previous version.

Image

Original Comments

Feedback Bot on 17/03/2026, 02:39 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.

Devin Breshears [MSFT] on 18/03/2026, 02:14 PM:

Thank you for reporting this. To help us investigate could you share:

1. A minimal .razor file that demonstrates the incorrect indentation
2. Which previous version of Visual Studio produced the correct indentation
3.  Steps to reproduce the issue.    

Devin

Metadata

Metadata

Assignees

Labels

author: migration bot 🤖The issue was created by a issue mover bot. The author may not be the actual author

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions