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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:22:23+00:00 2026-06-16T09:22:23+00:00

In Visual Studio 2010, I have multiple lines of text to be commented: A

  • 0

In Visual Studio 2010, I have multiple lines of text to be commented:

A
B
C

Using CTRL+E+C to comment out multiple lines, I get

//A
//B
//C

I would like to have a space (or indent) between // and A, hence // A instead of //A.

However, after I group tab a block of text and indent it, CTRL+E+C no longer comments out the selected text.

How to group comment and get the following:

// A
// B
// C
  • 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-16T09:22:24+00:00Added an answer on June 16, 2026 at 9:22 am

    One way to do it would be:

    1. Select the text, Press CTRL + K, C to comment (CTRL+E+C )
    2. Move the cursor to the first line after the delimiter // and before the Code text.
    3. Press Alt + Shift and use arrow keys to make selection. (Remember to make line selection(using down, up arrow keys), not the text selection – See Box Selection and Multi line editing)
    4. Once the selection is done, press space bar to enter a single space.

    Notice the vertical blue line in the below image( that will appear once the selection is made, then you can insert any number of characters in between them)

    enter image description here

    I couldn’t find a direct way to do that. The interesting thing is that it is mentioned in the C# Coding Conventions (C# Programming Guide) under Commenting Conventions.

    Insert one space between the comment delimiter (//) and the comment
    text

    But the default implementation of commenting in visual studio doesn’t insert any space

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

Sidebar

Related Questions

We have developers using Visual Studio 2010 professional and some trying out Visual Studio
I have a Visual Studio (2010) package that combines multiple text operations, e.g. it
I have multiple Projects(site) in my Solution (visual studio 2010). when i run my
I have a Visual Studio 2010 solution that contains multiple projects. One of these
I have developed a sharepoint 2010 visual webpart application with multiple visual webparts using
Using Visual Studio 2010 C++. I have a project which uses MFC and I
I have an engineering firm and our website was built using Visual Studio 2010
I have a C# project in Visual Studio 2010 with multiple solution configurations (not
I'm creating an application using Visual Studio 2010 C#. I have a string in-line
I have a solution in Visual Studio 2010 which contains multiple projects. All of

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.