Edit: Just One Space

edit.justOneSpace

Collapse spaces and tabs around the caret to a single space.

How to run it

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

Emacs M-space

See also