简体   繁体   中英

How to make ReSharper place delegated get-only properties in a single line?

It generates:

     public GameMode GameType
     {
         get { return _builder.GameType; } }

But I want:

     public GameMode GameType { get { return _builder.GameType; } }

在ReSharper的“选项”中,导航到“代码编辑” |“ C#” |“格式设置” |“换行和换行”,然后查找标题为“ 在单行上放置简单属性/索引器/事件声明”的设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM