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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:23:16+00:00 2026-06-09T00:23:16+00:00

In the Visual Studio 2010 SDK there is SnapshotSpans and VirtualSnapshotSpans. According to MSDN,

  • 0

In the Visual Studio 2010 SDK there is SnapshotSpans and VirtualSnapshotSpans. According to MSDN, the difference is the Virtual Span has Virtual Spaces, the other does not.

What exactly is a Virtual Space?

For reference:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.text.virtualsnapshotspan.aspx

  • 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-09T00:23:18+00:00Added an answer on June 9, 2026 at 12:23 am

    You can find an explanation here:

    http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.text.virtualsnapshotpoint%28v=vs.100%29.aspx

    Virtual spaces are “extra” spaces at the end of a line that do not add
    to the length of the line. You can enable or disable virtual spaces in
    Visual Studio. When virtual spaces are disabled, pressing on the right
    arrow key at the end of a line causes the caret to move to the
    beginning of the next line. When virtual spaces are enabled, pressing
    on the right arrow key at the end of a line causes the caret to move
    forward on the same line.

    Even if the option “Enable virtual Space” under Tools -> Options -> Text Editor -> All Languages -> General is disabled, virtual spaces can be inserted when writing indented text or code.

    If you type enter at the end of an indented line, Visual Studio adds virtual spaces at the beginning of the new line. These spaces are “virtual” since they have not been typed by the user and will not be saved in the file unless you enter something after the virtual spaces.

    This affects the position of the caret:
    After pressing enter at the end of an indented line the “BufferPosition”- and “VirtualBufferPosition”-properties of CaretPosition will be different.
    BufferPosition points to column 0 in the new line and VirtualBufferPosition points to the position where the caret is visually rendered.

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

Sidebar

Related Questions

I have virtual machine that has windows 7 + visual studio 2010 setup, and
Is Windows Phone 7 Development SDK available for other versions of Visual Studio 2010
Does installing the Windows SDK alter an existing installation of Visual Studio 2010? After
Trying to install the Visual Studio 2010 SDK but it aborts with an error
The Visual Studio 2010 SDK ships with many assemblies like Microsoft.VisualStudio.Text.Data and Microsoft.VisualStudio.Text.UI that
Tech : Visual Studio 2010, Visual Studio Visualization & Modeling SDK We have a
I have Visual Studio 2010 Ulitmate (with MSDN Premium), but I can't seem to
i took the XmlClassGenerator sample of the visual studio 2010 sdk. in the visual
I've installed JDK, Android SDK and Mono Android for Visual Studio 2010, I've created
Visual Studio 2010 no longer has the VC++ Directories page under Tools / Options.

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.