Resharper中是否有办法将所有linq方法格式化为垂直堆叠。 我有一些看起来像这样的代码:
xTable.Include(x => x.RelatedTable.Select(y => y.Childrens)).Include(x => x.SomeField).Where(x => x.Guid == token).ToList();
我想将代码格式化为:
xTable.Include(x => x.RelatedTable.Select(y => y.Childrens))
.Include(x => x.SomeField)
.First(x => x.Guid == token)
.ToList();
答案 0 :(得分:3)
我认为您在“选项”页面中关注了这两项中的一项:
Code Editing
->C#
->FormattingStyle
->Other
-> Align Multiline Constructs
-> 1) LINQ query
-> 2) Chained method calls