在 Visual Studio 2022 中新建类时如何默认就使用 file scoped namespace?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
在 .editorconfig 中添加下面的配置
csharp_style_namespace_declarations=file_scoped:suggestion