cra*_*157 5 c# code-cleanup curly-braces visual-studio codemaid
谁能建议如何从任何单行语句中删除大括号?(排除明显的手动删除大括号)
在 Visual Studio 中使用 C#。
所以而不是:
if (thingy is null)
{
throw new ArgumentNullException(nameof(thingy));
}
Run Code Online (Sandbox Code Playgroud)
有替代方案:
if (thingy is null)
throw new ArgumentNullException(nameof(thingy));
Run Code Online (Sandbox Code Playgroud)
我尝试运行 CodeMaid 并更改 CodeCleanup (这只是将其更改回大括号)。我很高兴尝试任何推荐的扩展等来解决这个问题。
| 归档时间: |
|
| 查看次数: |
2551 次 |
| 最近记录: |