editorconfig-如何为只读私有字段指定下划线前缀?

时间:2019-12-18 13:55:10

标签: c# visual-studio code-formatting editorconfig

我在网上找不到任何东西。

有什么方法可以指定为只读专用字段添加下划线前缀吗?

自从我开始使用editorconfig文件以来,当我选择“引入只读字段”操作时,Visual Studio就会PascalCase该字段。

This is the action I am choosing

1 个答案:

答案 0 :(得分:0)

正如塞巴斯蒂安·布鲁纳(Sebastian Brunner)在评论中所链接的,这里的答案解决了我的问题:

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