Skip to content

Instantly share code, notes, and snippets.

@VincentH-Net
Created July 4, 2022 17:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VincentH-Net/a88840c96f0083af3064d74e052ad20c to your computer and use it in GitHub Desktop.
Save VincentH-Net/a88840c96f0083af3064d74e052ad20c to your computer and use it in GitHub Desktop.
.editorconfig naming rule for NO underscore prefix on private fields
# Start of NO underscore prefix on private fields
# Define the 'private_fields' symbol group:
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
# Define the 'notunderscored' naming style
dotnet_naming_style.notunderscored.capitalization = camel_case
dotnet_naming_style.notunderscored.required_prefix =
# Define the 'private_fields_notunderscored' naming rule
dotnet_naming_rule.private_fields_notunderscored.symbols = private_fields
dotnet_naming_rule.private_fields_notunderscored.style = notunderscored
dotnet_naming_rule.private_fields_notunderscored.severity = error
# End of No underscore prefix on private fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment