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.
Please sign in to leave a comment.
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.
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...
>
Hello Amir,
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?
Seems, this trick does not work either. I have submitted request into the
Tracker instead:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=11409