Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

editorconfig - how to specify underscore prefix for readonly private fields?

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.

This is the action I am choosing

like image 275
Mathias Lykkegaard Lorenzen Avatar asked Dec 18 '19 13:12

Mathias Lykkegaard Lorenzen


Video Answer


1 Answers

The answer here solved my issue, as linked by Sebastian Brunner in the comments:

https://stackoverflow.com/a/49428349/553609

like image 59
Mathias Lykkegaard Lorenzen Avatar answered Sep 28 '22 18:09

Mathias Lykkegaard Lorenzen