Edit: Toggle Comment

edit.toggleComment

Comment or uncomment the line or selection.

How to run it

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

Emacs M-;
CUA C-/
Sublime Text C-/
VS Code C-/
IntelliJ IDEA C-/

See also