Skip to content

csharp_style_namespace_declarations in .editorconfig isn't used for generating code #103

Description

@304NotModified

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

Issue Description

When using csharp_style_namespace_declarations = file_scoped:warning in .editorconfig, the generated classes are still block scoped.

related: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0160-ide0161

Steps to Reproduce

  1. Set in the csharp_style_namespace_declarations = file_scoped:warning in the .editorconfig,
  2. Create a new scenario with new texts
  3. Right click and "Define Steps"
  4. Press Create

expected: a class is generated with file scoped namespaces
current result: a class is generated with block scoped namespaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions