LINQ group by - why does "into" have to go on its own line?

I've seen there's a bug that was fixed regarding incorrect placement of "into" and "select" on their own line, but for some reason ReSharper still insists on putting "into" on its own line. This is bad style - it should go on the same line as the "group by" statement. I'm using ReSharper 8.2.

i.e.

good style:
from a in b
group a by a.x into g
select g

bad style:
from a in b
group a by a.x
into g
select g

There doesn't seem to be any option to fix this, and I also can't find it listed as an open bug in the ReSharper bug tracker. If it's not a bug, could we get an option to disable this? In my opinion it should be disabled by default, but at least having the option to disable it would do.

1 comment
Comment actions Permalink

Hello Nathan,

  There is similar request in YouTrack https://youtrack.jetbrains.com/issue/RSRP-335859.

Thanks!

0

Please sign in to leave a comment.