2017-10-10 46 views
0

我试图编辑换行符为0,但它只是不工作,在代码清理我要让下面的下面的代码:在Resharper中,如何删除字段之间的间距?

internal bool AllowTradingRequests { get; set; } 

internal bool AllowUserFollowing { get; set; } 

internal bool AllowFriendRequests { get; set; } 

internal bool AllowMessengerInvites { get; set; } 

internal bool AllowPetSpeech { get; set; } 

internal bool AllowBotSpeech { get; set; } 

internal bool AllowPublicRoomStatus { get; set; } 

internal bool AllowConsoleMessages { get; set; } 

internal bool AllowGifts { get; set; } 

internal bool AllowMimic { get; set; } 

internal bool ReceiveWhispers { get; set; } 

internal bool IgnorePublicWhispers { get; set; } 

internal bool PlayingFastFood { get; set; } 

转到:

internal bool AllowTradingRequests { get; set; } 
internal bool AllowUserFollowing { get; set; } 
internal bool AllowFriendRequests { get; set; } 
internal bool AllowMessengerInvites { get; set; } 
internal bool AllowPetSpeech { get; set; } 
internal bool AllowBotSpeech { get; set; } 
internal bool AllowPublicRoomStatus { get; set; } 
internal bool AllowConsoleMessages { get; set; } 
internal bool AllowGifts { get; set; } 
internal bool AllowMimic { get; set; } 
internal bool ReceiveWhispers { get; set; } 
internal bool IgnorePublicWhispers { get; set; } 
internal bool PlayingFastFood { get; set; } 

正如我说我已经把换行符数设为0,我还有什么要做的?这是一个错误还是我没有正确配置一些东西?

我试过代码清理,但它只是导致空间结果,每个字段之间的空间。

回答

0

还可以设置“C#\格式样式\空白行”“围绕字段”和“围绕单行字段”进行设置。

编辑:刚才注意到,那些属性不是字段。查看“C#\ Formatting Style \ Blank Lines”中的“围绕自动/抽象属性/事件”和“围绕单行自动/抽象属性/事件”设置。