VSCode创建任意Class误报命名空间已存在csharp(cs0101)的解决方法

设置中搜索use File Scoped Namespace或者在扩展->C# Extension configuration 中找use File Scoped Namespace,将此项勾选后重启VSCode,新建文件命名空间的格式会变,但能解决眼下的问题,可以接受。
posted @ 2022-11-10 10:08  lrplrplrp  阅读(139)  评论(0编辑  收藏  举报