VSCode C# 代码格式化无效?-灵析社区

代码大师

vscode里面的c#代码格式化无效,format on save已开启,看着是真难受啊 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/e44afb4e779da61d82a9a9e782cf6125.png) ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/ec6172adced74e820894a40a901c7243.png) 插件如下: ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241008/fc5cecb088b491ebbe25abcf32a72d29.png)

阅读量:140

点赞量:0

问AI
打开设置,启用下面的选项,重启即可。 Csharp › Format: Enable Enable/disable default C# formatter (requires restart). 或者试试官方提供的两种方案: «"https://vscode.github.net.cn/docs/csharp/formatting-> linting" (https://link.segmentfault.com/?enc=3o9UXr25XctOkOuU6wALaw%3D%3D.rzMMPlX95JvOF1rIOu6i4DhnW0pzRo3%2BtW%2FByA0ewsxwOlHxHYo4Oe%2F4UWTWJ4Os6xcVXmihz5K5TRuK051ijQ%3D%3D)»