Resharper reformatting Linq statement to put into and select on same line

天涯浪子 提交于 2019-12-03 15:49:46

Looking at the options for ReSharper, there is a single option under Code Editing -> C# -> Formatting Style -> Other called "Align Multiline Constructs, LINQ query".

This appears to control the relevant formatting (disabling it causes the multi-line linq query to not align by position, but simply by tab indentation).

Based on the fact that there isn't any more granular control over what happens with into, I'd say it's either a bug or a missed requirement on their part. Perhaps raise a ticket.

To be honest I was expecting to find something under "Line Breaks and Wrapping", but nothing was in there for linq queries.

ReSharper 7.1.1000.900 on VS 2012

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!