dotnet / dotnet/sdk

Formatting *.razor files with editorconfig not working

Open
#53,111 2 comments 4 reactions 0 assignees View on GitHub
Area-Format untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
*.razor files are not formatted with editorconfig rules

Hi,
I have to work with C#/Blazor/Razor since last year and I'm extremely annoyed, why such basic things as formatting are not working.
I use VSCode v1.109.5, C# DevKit extension v2.10.3, C# extension v2.120.3, editorconfig extension v0.18.1, dotnet sdk v10.0.103, macOS 26.3

### Related issues:
- https://github.com/dotnet/razor/issues/5607
- https://github.com/dotnet/roslyn/issues/85310
- https://github.com/dotnet/format/issues/153
- https://github.com/dotnet/sdk/issues/39817
- https://github.com/dotnet/sdk/issues/49347

Thx and cheers!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.