Change in C# closing bracket behaviour
I've just updated to the latest Resharper and discovered a change in how bracket replacement is working.
If I have the following left after an edit:
{
}
}
I will often highlight all three and type a single '}'. Previously this replaced all three with a single '}' and reformatted the code. Now it's adding two more matched pairs producing:
{
{
}
}
}
Is there an option to restore the previous behaviour?
Please sign in to leave a comment.
Ah ha! Found it. 'Environment\Editor\Editor Behaviour\Surround selection on typing a brace or parenthesis' controls. Unchecking this restores sanity.
Grrr.