Question on anonymous delegate formatting

Hello,

When formatting code with anonymous delegates Resharper inserts additional
indentation after 'delegate'. That is:

progressWindow.Execute(
delegate(IProgressIndicator progressIndicator)
{
some code goes here
});

And I would rather prefer to have
progressWindow.Execute(
delegate(IProgressIndicator progressIndicator)
{
some code goes here
});

Is there any option which prevents Resharper from doing so? If not, any chance
to see it implemented in 2.0?

Regards,
Maxim.


4 comments
Comment actions Permalink

It seems the leading spaces were dropped in my message =( Now both snippets
look the same. Hope it is still possible to understand what I mean.


0
Comment actions Permalink

Nope... Try to resubmit and put comments where the empty lines should go...

"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:7509632654916582187500@news.intellij.net...

It seems the leading spaces were dropped in my message =( Now both
snippets look the same. Hope it is still possible to understand what I
mean.

>



0
Comment actions Permalink

Hello Amir,

Nope... Try to resubmit and put comments where the empty lines should
go...

OK. Here's my next attempt =)

When formatting code with anonymous delegates Resharper inserts additional
indentation after 'delegate'. That is:

~progressWindow.Execute(
~ delegate(IProgressIndicator progressIndicator)
~ {
~ some code goes here
~ });
And I would rather prefer to have
~progressWindow.Execute(
~ delegate(IProgressIndicator progressIndicator)
~ {
~ some code goes here
~ });

Is there any option which prevents Resharper from doing so? If not, any chance
to see it implemented in 2.0?




0
Comment actions Permalink

Seems, this trick does not work either. I have submitted request into the
Tracker instead:

http://www.intellij.net/tracker/resharper/viewSCR?publicId=11409


0

Please sign in to leave a comment.