We are using combination of fallow tools:
For overriding style for dedicated project we need to do the fallowing:
EditorConfig:
- Overriding for all directories
You need to create .editorconfig in root to apply for all directories (if you want to do that for all pages add .editorconfig file in same place where sln file is located).
- Overriding in dedicated directory f.e. generated models directory
You need to create .editorconfig in dedicated directory with all overridden rules.
- Overriding rules for dedicated file extensions
You need to create .editorconfig and inside it using templating:
[*.someExtension.cs]
# here the rules for this file extension
More configuration details in files:
Class names:
public class (TestedClassName)Tests
Methods names:
public void/Task/ValueTask Should_ExpectedBehaviour_When_StateUnderTest()
public class (ClassName)Specs
{
//general configuration goes here
public class Given_SomeArrangements : (ClassName)Specs
{
public Task/void Should_SomeAction_SomeOutcome
}
}