Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper configuration for indentation of anonymous methods?

If I ask ReSharper to reformat the current code:

SomeMethodThatIsGivenAnAnonymousMethod(delegate
{
    Test();
});

Then it reformats it like this:

SomeMethodThatIsGivenAnAnonymousMethod(delegate
                                           {
                                               Test();
                                           });

I can at most coax it to line up the braces with the delegate keyword. Is there any way I can coax it into indenting it back to the original way?

like image 348
Lasse V. Karlsen Avatar asked Nov 09 '10 15:11

Lasse V. Karlsen


1 Answers

Try Formatting Style | Other | Indent Anonymous Method Body. If I turn this off, I get the original format you describe.

like image 83
Dan Bryant Avatar answered Nov 04 '22 20:11

Dan Bryant