Editorconfig Guide.e

Namespace match folder

EditorConfig key: dotnet-style-namespace-match-folder

Namespace match folder

dotnet-style-namespace-match-folder

This option controls whether the declared namespace of a file should be required to match the folder structure the file lives in.

Default value:

true

Possible values:

  • true
  • false

Examples

true
namespace Proj.Folder.Data
is in /Folder/Data
false
namespace Proj.Folder.Data
can be anywhere