2
我更喜歡使用Align AssignmentsResharper可以忽略聲明語句中的空格嗎?
通過鍵入Ctrl + Alt +]來對齊賦值語句。例如,按下Ctrl - 交替 - ]是選擇了以下時:
MaxMultiplier = bonusMathModel.MaxMultiplier;
MaxFreeGames = bonusMathModel.MaxFreeGames;
MultiplierQueueMode = MultiplierQueueMode.OVERLAPPED;
OverlappedMultiplierOperator = OverlappedMultiplierOperator.ADDED;
將其轉換爲這樣:
MaxMultiplier = bonusMathModel.MaxMultiplier;
MaxFreeGames = bonusMathModel.MaxFreeGames;
MultiplierQueueMode = MultiplierQueueMode.OVERLAPPED;
OverlappedMultiplierOperator = OverlappedMultiplierOperator.ADDED;
然而,ReSharper的CTRL-ALT-F清理將撤消的對準作業。我如何更改Resharper的行爲以保持對齊分配?