How can I reduce indentation of anonymous method parameters

eg:
            return DAOFactory.Use(true, dao =>
                                  {
                                      return new ExactValueBudgetKeyComponent()
                                                 {
                                                     DocumentFieldKey = documentField.FieldName,
                                                     ExactValueId = fieldValue.ValueId
                                                 };
                                  });

I really want this to look like:
            return DAOFactory.Use(true, dao =>
            {
                return new ExactValueBudgetKeyComponent()
                       {
                           DocumentFieldKey = documentField.FieldName,
                           ExactValueId = fieldValue.ValueId
                       };
            });

I cant seem to find any settings taht control this as I want

0
2 comments
Avatar
Permanently deleted user

Hello David
     Try turning off the 'Indent anonymous method body' option under ReSharper | Options | Code Editing | C# | Formatting Style | Other. Let me know if this helps. Thakn you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com


"Develop with pleasure!"

0

that did it .  Thanks

0

Please sign in to leave a comment.