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 7951399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:32:55+00:00 2026-06-04T02:32:55+00:00

I like to indent my comments. Visual Studio 2010 removes the indenting format I

  • 0

I like to indent my comments. Visual Studio 2010 removes the indenting format I make. How can I prevent that from happening?

Here is an example of what I am talking about. Before I code, I comment. It helps me to keep the picture of where I want to go when things get convoluted. So if I am going to code a lab coat I will write the comments for that part like this:

//Make lab coat
    //Add pockets
        //Add pen to top pocket
    //Add buttons
    //Add Name Tag
        //Put Name On Name Tag

And then I would go back in and fill in the code for the commented section. This is just an example of formatting, lets not get into the semantics of lab coat implementation.

However, in Visual Studio 2010, if I start adding some code, the auto-formatter will remove all of the indentation for the comments. I tried looking at the editor options but couldn’t figure out if the setting existed for this case.

How can I prevent Visual Studio 2010 from removing these indentations?

  • 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-04T02:32:56+00:00Added an answer on June 4, 2026 at 2:32 am

    I have this workaround, but I was hoping for a more legit method for accomplishing this.

    //Build lab coat
    {
        //Add Pockets
        {
            //Add pen to top pocket
    
        }
        //Add Buttons
        {
    
        }
        //Add Name Tag
        {
            //Add name to name tag
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a small list of recent comments, and would like to make links
Is it possible to override the auto-indentation of comments in VB.NET (Using visual studio
I want to make emacs indent ruby method calls like: foo( :blah => 'bar',
I've got a site that accepts input from newbie coders, and would like to
I'm new to using Visual Studio 2008 IDE. Switching from vim. Is there a
Like it or not, occasionally you have have to write tests for classes that
I want to create something like reddit where they have comments, then replies to
I am having a problem with doxygen style multi-line comments with emacs indent feature
Is there a Python script or tool available which can remove comments and docstrings
I would like to implement a thread pool in Java, which can dynamically resize

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.