首页 新闻 赞助 找找看

如何让 VS 2022 新建的 class 默认使用 file scoped namespace

0
悬赏园豆:30 [已解决问题] 解决于 2023-02-08 16:16

在 Visual Studio 2022 中新建类时如何默认就使用 file scoped namespace?

dudu的主页 dudu | 高人七级 | 园豆:31075
提问于:2023-02-08 15:52
< >
分享
最佳答案
0

在 .editorconfig 中添加下面的配置

csharp_style_namespace_declarations=file_scoped:suggestion
dudu | 高人七级 |园豆:31075 | 2023-02-08 16:15
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册