views:

40

answers:

1

Does anyone know how to make Resharper add blank lines after brackets when performing code cleanup?

I want to make the following code

if (x == y)
{
   int a = x;
   int b = y;
   int z = a + b;
}

Look like this

if (x == y)
{

   int a = x;
   int b = y;
   int z = a + b;

}
A: 

I have had a look through the Resharper options but can't see anything to add the extra blank lines around your block of code, although I am not sure that format makes it any more readable than without extra spaces. I would suggest asking this question on the Resharper News Group: news://news.jetbrains.com/jetbrains.resharper.community

Piers Myers
Thanks for the information, but it looks like there is not an option that supports this. Since adding an extra blank line does not overly enhance readability I will accept the default.
dretzlaff17

related questions