"Create local variable" swallows entire statement into 1 line

[4.5]
If I have the following layout:
public class FooClass
{
int GetResults()
{
return 1;
}
void Foo()
{
results =
GetResults() +
GetResults()*2 +
GetResults()*3;
}
}

And hit Shift-enter on "results" to create local variable, everything gets chunked into 1 line:
void Foo()
{ int results = GetResults() + GetResults()*2 + GetResults()*3; }

This is pretty annoying when having complex linq expressions with carefully chosen newlines in it.

(I use the workaround to copy the newly created type, hit Undo and then paste it in myself, which isn't a big deal really but still).

Thanks.

Please sign in to leave a comment.