Turn off double line spacing when folding code in VS2010

I use code folding commands in Visual Studio 2008 all the time - for example,

ctrl + m, ctrl + o (collapse all) ctrl + m, ctrl + m (toggle expand/collapse of code block) 

Visual Studio 2010 has an โ€œimprovementโ€ when the folded code now has a space between one and the second block. eg.

 void function1()[+]{...} void function2()[+]{...} 

Instead of path VS2008

 void function1()[+]{...} void function2()[+]{...} 

Does anyone know how to prevent VS2010 from adding this space in white places - this is very annoying!

Update: it seems that many people cannot reproduce. but since this question has received 6 votes to date, I assume that there are those who can.

C # users report that they cannot play. I only code in C ++, and this is definitely a problem in C ++. Maybe I will send a report in m $ ...

+6
visual-studio-2008 visual-studio-2010 folding configuration
source share
3 answers

I'm not sure if your specific problem has been fixed by installing Powerivity Tools , but I just checked the minimized display in C ++ in my installation and it works the same as in VS2008. Performance power tools add many other nice features and eliminate some of the annoyances in VS2010 that make them stand anyway.

Additional note: we are launching the VS2010 Ultimate, although I did not expect the edition to make a difference.

+1
source share

I can not reproduce it. I am using Visual C # 2010 Express.

 namespace Bums { class Bum1 { void Lick1() { Lick2(); } void Lick2() { Lick1(); } } class Bum2 { void Lick1() { Lick2(); } void Lick2() { Lick1(); } } } 

Pinky

(no comments on how I should derive both classes from the IBum base interface)

+4
source share

Just for clarification, when you use 'ctrl + m, ctrl + o' or 'ctrl + m, ctrl + m' in visual studio 2010, then vs automatically adds a space between the methods.

Suppose you have the following class:

  public class VsSettings { void function1() { } void function2() { } } 

And after pressing 'ctrl + m, ctrl + o' you will see the following:

  public class VsSettings { void function1()... void function2()... } 

If so, try resetting the visual studio settings (tools -> import and export options) and disable external plugins (e.g. resharper, etc.), because for me there was always a result (with the resharper option turned on without resharper, before the settings reset, after reset settings):

  public class VsSettings { void function1()... void function2()... } 

I hope for this help.

-one
source share

All Articles