Visual Studio C#, Remove Vertical Whitespace  
Author Message
AlanBlythe





PostPosted: Visual C# IDE, Visual Studio C#, Remove Vertical Whitespace Top

Is there a way in VS to remove vertical whitespace with a menu command or keystroke

I realize that this isn't really whitespace and that it is really 2 carriage returns in a row.

There is one thing that is similar in edit, advanced, delete horizontal white space.

If there isnt a way, is there an addon that can do it

Can you use find/replace to do it

code now

private bool _NewClient = false;

private bool _ReadOnly = false;

private int _ClientContactID = 0;

want it to look like this after

private bool _NewClient = false;
private bool _ReadOnly = false;
private int _ClientContactID = 0;



Visual C#7  
 
 
James Curran





PostPosted: Visual C# IDE, Visual Studio C#, Remove Vertical Whitespace Top

USe Search & Replace (Edit/Find and Replace/Replace, or just Ctrl -H)

Check Regular Expressions

Then just replace "\n\n" with "\n"