Configure Visual Studio to Name Private Fields with Underscore - ardalis

added by DotNetKicks
8/20/2019 6:59:18 PM

2 Kicks, 372 Views

Most C# coding standards recommend using camelCase for local variables and _camelCase for private or internal (and I also say for protected, but that's just me) fields. Unfortunately, out of the box Visual Studio just uses camelCase for these fields, which makes typical dependency injection scenarios annoying in constructors: I much prefer this version: Fortunately, ...


0 comments