</textarea> doesn’t align
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
It is a Blazor Wasm app.
I created a brand new repo. Please simply [clone it](https://github.com/PhilippJR/RazorEditor.git), find the following code in Home.razor and hit CTRL+K,D. Among other things, you will see that `` is not being aligned properly.
```
@* CTRL+K,D indents this comment and the "div", misaligns "oninput", does not align "" and does not align the closing "" with the opening "
```
According to @davidwengier
> Indenting comment, and “div” and “oninput” [...] seems to be fixed after recent updates. [...] The “” doesn’t align is actually by design. The formatter treats the entire contents of a textarea or pre tag as having significant whitespace, and so purposefully doesn’t touch these. I could definitely see this one being debatable, so feel free to log an issue on our repo to change this behaviour..
[Source](https://developercommunity.visualstudio.com/t/Razor-editor-formating-with-CTRLKD-has/11083886#T-N11085210)
OS: 10.0.26200.0, VS: 18.5.1 (18.5.11716.220), Product: professional-2026, Project type: C# / Razor editor
Contributor guide
Assessment
This issue has not been assessed yet.