1 year ago
#346342
Complexity
Rider - .editorconfig: File scoped namespaces not respected
I'm using Rider 2021.3.3 (latest version), and when I have the latest .NET SDK on my machine (.NET 6).
Inside the .editorconfig
file, I have added the following:
csharp_namespace_body = file_scoped
When I create a new project, it contains a file with a File-scoped namespace:
namespace ClassLibrary2;
public class Class1
{
}
If I change it to a block-scoped namespace and I run a cleanup, the file doesn't change but remains using the block-scoped namespace.
namespace ClassLibrary2
{
public class Class1
{
}
}
Rider is configured to read settings from the .editorconfig file. Changing the rules that specifies how much blank lines are required before a single line comment, this is respected.
```csharp_blank_lines_before_single_line_comment = 1`
Any idea on what's going wrong?
resharper
rider
editorconfig
0 Answers
Your Answer