razor icon indicating copy to clipboard operation
razor copied to clipboard

Section formatting issue in ASP.NET Razor view

Open mkorsukov opened this issue 5 months ago • 0 comments

There is a tiny formatting issue happening on section definition only.

VS Code: v1.92.2 O# extension: v2.39.29

Initial code:

@section Controls
{
  <label>
    <span>Office</span>
    // the rest of HTML

After the Format document command:

@section Controls
  {
  <label>
    <span>Office</span>
    // the rest of HTML

PS. The issue doesn't affect such blocks code like layout and code. So formatting remains the same.

@{
  Layout = "/Views/Acquisition/Layouts/MainLayout.cshtml";
}

mkorsukov avatar Aug 27 '24 17:08 mkorsukov