ide – How do I get Visual Studio, Code Clean Up to remove White Spaces?


After some searching, like remove White Spaces/remove empty lines this feature isn’t implemented in the same way in Visual Studio.

As a workaround, you can use shortcut to achieve it.

1.Open Tools > Options->Environment tab > Keyboard

2.Search for DeleteBlank and select Edit.DeleteBlankLines

3.Add a new shortcut for example Ctrl+D,Ctrl+E

4.Assign > OK

5.Select all text and hit the shortcut

Besides, i suggest you can submit a feature request on Visual Studio Forum.
That will allow you to directly interact with the appropriate product group, and make it more convenient for the product group to collect and categorize your suggestions.

Leave a Reply

Your email address will not be published. Required fields are marked *