Edit: Delete Blank Lines

edit.deleteBlankLines

Remove blank lines around or after the caret.

How to run it

Open the command palette (M-x in the Emacs keymap) and search for Edit: Delete Blank Lines, then press Enter. It also has a default keybinding:

Emacs C-xC-o

See also