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

  • SEARCH
  • Home
  • 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 130111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:53:47+00:00 2026-05-11T05:53:47+00:00

In Visual Studio 2008’s Options > Text Editor > C# > Formatting, I have

  • 0

In Visual Studio 2008’s Options > Text Editor > C# > Formatting, I have the following settings ticked.

  • Automatically format completed statement on ;

  • Automatically format completed block on }

This is really helpful for when I’m writing a method or a for/foreach/while/if statement.

ie if I write

void MyMethod(){} 

I want it to reformat it to the following when I type the last }

void MyMethod() { } 

However, when I write:

bool MyProperty { get; set; } 

I want it to stay that way instead of getting changed to:

bool MyProperty  {      get;      set;  } 

Is there anyway that I can get this to happen or am I dreaming? The only way I can think of is turning those two settings off….but that just results in the annoyance getting shifted to when I write methods and if statements etc.

Update: Just thought I’d mention that I use Resharper…so if there’s a way to accomplish it through there I would be interested in knowing that too.

  • 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. 2026-05-11T05:53:48+00:00Added an answer on May 11, 2026 at 5:53 am

    Awesome! I managed to figure it out. Thanks to Anton I had a closer look at the settings available in Resharper and I was able to figure something out.

    My solution involves a combination of settings in Resharper and VS2008.

    In VS2008, I turn off Automatically format completed statement on ;

    I then turn on the setting in Resharper for IntelliSense Completion Behavior to Automatically insert parentheses after completion.

    This allows me to type:

    bool MyProperty { 

    To get:

    bool MyProperty {} 

    Which then allows me to add the get; and set; lines without them formatting…

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

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 92k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, .length (property-like, not a method): String[] array = new… May 11, 2026 at 6:25 pm
  • Editorial Team
    Editorial Team added an answer I managed to get it to work with: Table<Gallery> galleries… May 11, 2026 at 6:25 pm
  • Editorial Team
    Editorial Team added an answer I figured it out. In addition to the aforementioned code,… May 11, 2026 at 6:25 pm

Related Questions

In Visual Studio 2008 add a new DataGridView to a form Edit Columns Add
In Visual Studio 2008 in a C# WinForms project, there is a button on
In Visual Studio 2008 (and others) when creating a .NET or silverlight application if
In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched
In Visual Studio 2008 I can add a project reference and set Copy Local

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.