2017-10-10 52 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」中的「圍繞自動/抽象屬性/事件」和「圍繞單行自動/抽象屬性/事件」設置。