View: Create Fold From Selection

view.createFoldFromSelection

Create a manual fold range from the selected lines and collapse it.

How to run it

Open the command palette (M-x in the Emacs keymap) and search for View: Create Fold From Selection, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.

See also