当我使用“Introduce Local”重构时,CodeRush 会更改我的代码的缩进。例如,之前:
DoSomething(new MyObject
{
PropertyA = "A",
PropertyB = 2,
PropertyC = true
});
后:
MyObject newMyObject = new MyObject
{
PropertyA = "A",
PropertyB = 2,
PropertyC = true
};
DoSomething(newMyObject);
我想要的是:
MyObject newMyObject = new MyObject
{
PropertyA = "A",
PropertyB = 2,
PropertyC = true
};
DoSomething(newMyObject);
我希望 CodeRush 尊重我的格式。至少,我应该能够告诉它我更喜欢如何缩进我的初始化程序。有什么选择可以帮助我吗?