razor
razor copied to clipboard
Section formatting issue in ASP.NET Razor view
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";
}