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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:11:20+00:00 2026-06-04T03:11:20+00:00

I have 2 questions Q1: I have read about various coding indent styles like

  • 0

I have 2 questions

Q1:

I have read about various coding indent styles like Allman, K&R etc.

What i want to know is where is the setting in VS(2010) where all these can be set?

Q2:

When I press Ctrl + K and Ctrl + D after each other. It corrects formatting like where there are 2 spaces b/w words it reduces them to one.

Similarly is there any shortcuts that removes extra emptylines between 2 lines of codes?

My situation is that I was given a code where extra enter were pressed between 2 lines of code. How can i remove it?

  • 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-04T03:11:21+00:00Added an answer on June 4, 2026 at 3:11 am

    Q1. Under Tools->Options->Text Editor->C#->Formatting->Indentation Indent Style
    change the settings as per your need.
    Also check Formatting->New Lines.

    Q2. There are many ways to remove blank lines
    1st Solution:
    1. Click Ctrl+H (quick replace)
    2. Tick “Use Regular Expressions”
    3. In Find specify “^$\n”
    4. In Replace box delete everything.
    5. Click “Replace All”
    All Blank lines will be deleted. 🙂
    ^ Means Beginning of line
    $ Means End of line

    2nd Solution:
    Check the VS addins like resharper or CodeMaid which does the code formatting

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

Sidebar

Related Questions

I have read many questions about Android, J2ME and RecordStore , but I still
I have read many questions about the facebook login but until not I didnt
I have read similar questions but they talk of AI models. What I want
People have asked similar questions about the efficiency of various data structures but none
Read about the issue in this stackoverflow question . Still have the same issue
I have a question about the C++ visibility attribute. I have read http://gcc.gnu.org/wiki/Visibility and
I am using JMeter and have 2 questions (I have read the FAQ +
I have read several questions regarding this but I fear they may be out
I've read some documentation on how Adaboost works but have some questions regarding it.
I have trouble with adding new row to my UITableView. I read similar questions

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.