LinqPad adding braces to queries
Using latest beta 5.07.02 (tried in 5.07.01 too), I'm getting some weird automatic bracing when trying to write a Linq query.
1. Startup (it defaults to C# statements)
2. Select DB
3. Start typing: var a = from d in MyTables
4. Hit enter
I now have:
var a = from d in MyTables
{
}
It never used to put the braces in, which I now have to delete.
I don't think I've changed anything. I might be doing something silly though...
1. Startup (it defaults to C# statements)
2. Select DB
3. Start typing: var a = from d in MyTables
4. Hit enter
I now have:
var a = from d in MyTables
{
}
It never used to put the braces in, which I now have to delete.
I don't think I've changed anything. I might be doing something silly though...
Comments
Another example is pressing return in the middle of what you want to be a multi-line expression, eg
var x = 1; if (x == 1 ||
becomes
var x = 1; if (x == 1 || { }