AddAnyFile icon indicating copy to clipboard operation
AddAnyFile copied to clipboard

File scoped namespace option has a typo in the template when generating a "razor.cs" file

Open mtranchi opened this issue 3 years ago • 0 comments

Description

When one has the file-scoped namespaces option turned on in Tools > Options > Yada Yada, the generated file is missing the closing brace on the class if creating a code-behind file for a razor file (e.g. MyComponent.razor.cs).

Steps to reproduce

  1. Turn on file-scoped namespaces under Tools > Options > Text Editor > C# >Code Style > Code block preferences > Namespace declarations.
  2. Generate a code-behind file for a Blazor component (e.g. MyComponent.razor.cs).

mtranchi avatar Jul 05 '22 09:07 mtranchi