Short
Short

Reputation: 7837

Visual Studio 2010 C++ unwanted whitespace automatically added

I figured this was the best place to ask.

In visual studio 2010 c++, the IDE automatically fills every line where I don't have text with white space. This makes it difficult, when I click on white space it puts my cursor directly where I clicked because there is white space across every line that I make. Is there a way to turn this behavior off?

Every search I have tried comes up with people asking about how to toggle the visualization of white space, so it makes it difficult to find the correct answer. This makes using the IDE difficult, and this behavior does not happen when I use vs2008. To be honest, I did make some IDE option changes but I don't think anything that would cause this.

To be complete, I do not think it will matter, the two VS2010 addins I currently have installed are AnkhSVN and QT 4.7.1 addin.

Thanks!

Upvotes: 2

Views: 556

Answers (1)

Damien_The_Unbeliever
Damien_The_Unbeliever

Reputation: 239754

I believe that the setting that you've somehow turned on is "Virtual Space".

It's a setting available in the Tools -> Options dialog, under Text Editor / <Language, in this case C/C++> / General.

Here's a blog post about it also.

Upvotes: 2

Related Questions