Given the class:
class BaseController
{
BaseView _baseView;
BaseModel _baseModel;
}
When using visual studio's suggested naming, it offers me the name base
, not baseView
. I've managed to add the _
prefix through the options, text-editor, c#, Code Style. But I cannot see how to control the proposed field name suggestion.
I was wondering if this could be controlled so it would suggest _baseView
and _baseModel
etc.
This worked for me:
Click the "+" to add a new naming style
Fill in:
Naming Style Title: "_camelCase"
Required Prefix: "_"
Capitalization: "camel Case Name"
Select "OK"
Click the "+" to add a new Specification
In the new row select:
Specification: "Private or Internal Field"
Required Style: "_camelCase"
Severity: "Suggestion"
That's it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With