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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:01:09+00:00 2026-06-10T12:01:09+00:00

Sometimes when i’m working in visual studio, I end up with a block of

  • 0

Sometimes when i’m working in visual studio, I end up with a block of code that I need to indent a single space in order to make it align completely.

A normal sized indent would be done by selecting the text and pressing the tab key, however if I just want to move it along one space, selecting the text and pressing the space bar overwrites the code.

I know I could do this this by changing the tab spacing option so the indent size is 1, indenting the text and then changing it back but this seems a bit longwinded…

I’ve had no luck searching, so I’ve written a macro to do the above, but I thought i’d ask on here before i resigned to using it just in case the function/shortcut already existed…


Edit: Macro moved to answers

  • 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-10T12:01:10+00:00Added an answer on June 10, 2026 at 12:01 pm

    Here is said macro for anyone interested:

    Sub SingleSpaceIndent()
        Dim textEditor As Properties
        textEditor = DTE.Properties("TextEditor", "AllLanguages")
        textEditor.Item("IndentSize").Value = 1
        DTE.ActiveDocument.Selection.Indent()
        textEditor.Item("IndentSize").Value = 4
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I run into situation where I find that I need to make an
Sometimes when using Visual Studio it displays a prompt with a filename: This file
Sometimes I have come across this issue that whenever I change the order of
Sometimes I have to work on code that moves the computer clock forward. In
Sometimes a labeled break or continue can make code a lot more readable. OUTERLOOP:
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
Sometimes it can be confusing reading code in instance members that refers to other
Sometimes when editing a code on VIM when I hit :w I discover that
Sometimes, tomcat restart will cause my application stop immediately so that my consuming data
Sometimes I need to modify a third party library for my specific needs. It

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.