Remove empty lines or other editing features in Visual Studio

In order to use column mode in Notepad++, you press the ALT button and start dragging.
In order to use column mode in Visual Studio, you press the ALT button and start dragging.

To my humble opinion, this similarity is not a coincidence. So, I wonder, what about other editing features of Notepad++, like "Remove Empty lines", the feature I'm currently interested in? Is this feature also implemented in Visual Studio and in case yes, how can I call it?


To my humble opinion, this similarity is not a coincidence.

It may not be. That is, it is entirely possible one development community looked at the features of one editor and decided they wanted those features in their own editor.

So, I wonder, what about other editing features of Notepad++, like "Remove Empty lines", the feature I'm currently interested in? Is this feature also implemented in Visual Studio and in case yes, how can I call it?

To the best of my knowledge, this feature isn't implemented in the same way in Visual Studio. These are still separate development communities. One editor likely isn't simply copying the features of another wholesale.

You can get roughly the same result, however, by searching and replacing with regular expressions. Note that the linked Stack Overflow question has an answer for Visual Studio 2017 and above that may allow you to manually create a shortcut to delete blank lines (but see the the comments).