I will show through an example that I want:
orignal state:
using (var myobject = new DisposableObject())
{
//some code that no longer use myobject
int x = 5;
int y = x+5;
}
desired state:
//some code that no longer use myobject
int x = 5;
int y = x+5;
I would like to achieve this change with a keyboard combination or a resharper command or maybe a macro. So not through deleting both of the curly brackets and the using line by hand. Is this possible?
Not a single command but this will work (needs Resharper):
{and hit alt+enter,