Thursday, 22 August 2013

How to stop VisualStudio from expanding everything within a region when deleting { } brackets

How to stop VisualStudio from expanding everything within a region when
deleting { } brackets

Like in the title. Let's say I've got a method, that contains a loop among
other thigns
for(/*conditions*/)
{
//1-line code
}
When refactoring code, I'm willing to shorten it a bit to
for(/*conditions*/)
//1-line code
But as soon as I delete first brace, everything in current region expands,
every method and every xml summary. I can't take it anymore and it happens
with every switch, loop and class braces. I'm tired of using Ctrl+M+O all
the time and then re-finding edited field again. Is there any option or
extension for VS2010, that would solve my problem?

No comments:

Post a Comment