Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8985579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:21:43+00:00 2026-06-15T21:21:43+00:00

I have Resharper installed with mainly default settings. Currently, I’d like my multi-line lambda

  • 0

I have Resharper installed with mainly default settings. Currently, I’d like my multi-line lambda expressions to look something like this:

foobarclass.biz.baz.Event += (s, e) =>
  {
    foo.Bar.DoThings.Whatever();
  };

However, Resharper “helpfully” will reformat my code to be like this:

foobarclass.biz.baz.Event += (s, e) =>
                                 {
                                     foo.Bar.DoThings.Whatever();
                                 };

And in some cases, will also break up long statements so it ends up looking like this:

foobarclass.biz.baz.Event += (s, e) =>
                                 {
                                     foo.
                                        Bar.
                                        DoThings.
                                        Whatever();
                                 };

As you can tell, this auto-formatting makes code a lot less readable. How can I fix this kind of behavior?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:21:44+00:00Added an answer on June 15, 2026 at 9:21 pm

    Try unchecking:

    RESHARPER -> OPTIONS -> C# -> Formatting Style -> Other -> Indent Anonymous Method Body

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have ReSharper installed to help me develop and edit code, and made
I have ReSharper installed with Visual Studio on a machine. I want to now
I just started using VS2008 and ReSharper. I have a line: Microsoft.Office.Server.Diagnostics.PortalLog.LogString(*** BOO Feature
I'm installing it now. I've seen a few videos where people have Resharper installed
I installed Visual Studio 8 on Windows 8 with Resharper 7.0.1, and I have
I have ReSharper 6 installed and integrated with Visual Studio 2008 and Visual Studio
I have Visual Studio 2010 and ReSharper installed and after looking for about an
I have vs.net 2010, and resharper . I installed the trial of viEmu ,
VS 2005/2008/2010 I have latest Visual Assist X and Resharper 5.0 installed at the
I have resharper installed and I use the todo list functionality pretty often. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.