そうですね。
公式の名前つけルールは下記の様になっています。
.editorconfig で設定することもできます。
snake_case が考慮されているかと調べたところ名前付けスタイルの capitalization
に指定できる値は
pascal_case
/ camel_case
/ first_word_upper
/ all_upper
/ all_lower
となっております。
ただ、調べた限りは 下記の発想を元に capitalization
を camel_case
にして、 word_separator
を _
にすることで実現できる様なので、フォーマットの定義はできそうな気はします。( dotnet format による書式強制はできそうな気はします。
I am not meaning to be argumentative at all, but wouldn't that be the case then to specify like this:
.editorconfig
dotnet_naming_style.some_style.capitalization = pascal_case
dotnet_naming_style.some_style.word_separator = "_"
Or use required_prefix = "_" and/or required_prefix = _.
And otherwise Pascal case and Camel case would not allow underscores I believe.