I haven't been able to find anything on this online.
Is there any way to specify that an underscore prefix for readonly private fields should be added?
Ever since I started using an editorconfig
file, Visual Studio will PascalCase the field when I choose the "Introduce read-only field" action.
dotnet_naming_style.private_prefix_style.required_prefix = _
– ThrownTools-->Options-->Text Editor-->C#(if you are using C#)-->Code Style-->Naming
to add a new rule.You can refer to that document for details. – Licit