【问题标题】:How would I go about changing the way the Rider IDE formats my C# code?我将如何改变 Rider IDE 格式化我的 C# 代码的方式?
【发布时间】:2020-01-13 04:38:59
【问题描述】:

所以现在我的 if else 语句自动格式化为:

但我希望它们的格式如下:

我将如何解决这个问题?

【问题讨论】:

    标签: c# rider


    【解决方案1】:

    可以在Preferences | Editor | Code Style | C# | Line Breaks and Wrapping | Arrangement of Statements | Place "else" on new line true中配置。

    【讨论】:

      猜你喜欢
      • 2012-06-07
      • 1970-01-01
      • 2011-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多