Dan*_*lii 8 c# static-code-analysis editorconfig .net-5
我使用.editorconfig文件在 .Net 5 解决方案中定义代码样式规则。是否可以在 中定义所需的类成员顺序.editorconfig?例如,公共成员应出现在私有之前,非静态成员应出现在静态之前,方法应出现在属性之前。
.editorconfig
JL0*_*0PD 3
您无法使用 定义类中成员的顺序editorconfig,但您可以使用 Roslyn 编写自定义分析器或使用 VS2019 的 CodeMaid 扩展,不确定 VSCode 扩展
editorconfig
归档时间:
4 年,9 月 前
查看次数:
2461 次
最近记录:
3 年,10 月 前