Coding Styles: .EditorConfig rules documentation

Chandra Mohan 461 Reputation points
2021-12-04T02:23:50.637+00:00

Could you please share reference documentation to find the list of editor config rules supported by Visual studio analyzer? For example, I noticed the following rules
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style
defined in the sample config file but not could not locate the rule 'members_should_be_pascal_case' defined anywhere in the documentation.

Following the above convention, I would like to apply the following rules
dotnet_naming_rule.properties_should_be_camel_case.severity = suggestion
dotnet_naming_rule.properties_should_be_camel_case.symbols = all_members
dotnet_naming_rule.properties_should_be_camel_case.style = pascal_case_style

but I am not sure whether the rule 'properties_should_be_camel_case.style' is valid and accepted by code analyzer? Please advise.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,417 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,310 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,736 Reputation points MVP
    2021-12-04T03:29:36.023+00:00

    You can find the Documentation here.

    Alternatively, you can generate your .editorconfig based on your language by going to Tools -> Options in Visual Studio. There Go to Text Editor and change your settings based on your preference.

    For an example for C#,

    154955-image.png

    0 comments No comments