用于缩进匿名方法的 ReSharper 配置?
如果我要求 ReSharper 重新格式化当前代码:
SomeMethodThatIsGivenAnAnonymousMethod(delegate
{
Test();
});
那么它会像这样重新格式化:
SomeMethodThatIsGivenAnAnonymousMethod(delegate
{
Test();
});
我最多可以哄它将大括号与 delegate 关键字对齐。有什么办法可以让它缩进到原来的方式吗?
If I ask ReSharper to reformat the current code:
SomeMethodThatIsGivenAnAnonymousMethod(delegate
{
Test();
});
Then it reformats it like this:
SomeMethodThatIsGivenAnAnonymousMethod(delegate
{
Test();
});
I can at most coax it to line up the braces with the delegate keyword. Is there any way I can coax it into indenting it back to the original way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
尝试格式化样式 |其他|缩进匿名方法体。如果我关闭此功能,我会得到您描述的原始格式。
Try Formatting Style | Other | Indent Anonymous Method Body. If I turn this off, I get the original format you describe.