Visual Studio 2010 C# Outlining works improperly

1.1k views Asked by At

So, code blocks (which can be collapsed like #region blocks) have corresponding markers (+ symbols) to the left of the text editor. These markers should be placed right where the code block starts. My problem is that they are shifted upwards a bit.

Here is a screenshot in case I didn't explain the issue clearly enough: http://img191.imageshack.us/img191/3489/04071173010.jpg

upd: This behavior was caused by an extension (thx Nija). In my case it was Presentation Zoom. However disabling and enabling it again fixed the problem.

Thanks for help!

2

There are 2 answers

0
Phil.Wheeler On

Try deselecting automatic outlining mode by going to Tools > Options > Text Editor > C# > Advanced and unchecking "Enter outlining mode when files open".

Restart Visual Studio.

If that doesn't work, try installing the Productivity Power Tools addon, which add more flexibility to the existing Visual Studio features and may correct your outlining.

If all else fails you might have to do an uninstall / repair.

1
cplotts On

The thing that often helps me in this situation ... is to quickly delete all the xmlns namespace definitions and then add them back with undo (Ctrl-Z).

I know, odd, but it often works.