我使用的是VS2010+重新锐化,我厌倦了在代码中重新格式化括号缩进。例如,如果我有这样的代码:
operators.Keys
.ToList()
.ForEach(k => filters
.AddRange(CustomHtmlHelpers.GetIdAndValueListByPrefix(queryString, k)
.Select(t => new QueryFilter()
{
Operation = operators[k],
PropertyName = t.Item1,
Value = t.Item2
})))
如果我把<code>代码>在最后VS(或重拍器)修复了括号缩进,因此代码变得如下:
operators.Keys
.ToList()
.ForEach(k => filters
.AddRange(CustomHtmlHelpers.GetIdAndValueListByPrefix(queryString, k)
.Select(t => new QueryFilter()
{
Operation = operators[k],
PropertyName = t.Item1,
Value = t.Item2
})));
Same happens if i use resharper s code cleanup. I probably could turn off automatic code reformatting on ;
but i need it in other situations.
I tried changing code formating options both in VS and resharper setting but never got indentation as i want it.
我如何配置vs或resharper,使其不会进行多个选项卡格式化?或者可能还有其他插件我可以(与r#一起)专门用于此目的?
编辑:对于任何对此问题感兴趣的人,这里是r#论坛http://devnet.jetbrains.net/thread/304794欢迎任何希望从r#中看到更好的嵌套代码缩进的人在此处投票支持http://youtrack.jetbrains.net/issue/RSRP-88220