Edit: Narrow to Region
edit.narrowToRegion Restrict the buffer to the selection; the rest stays in the file but is out of reach.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for Edit: Narrow to Region, then press Enter. It also has a default keybinding:
| Emacs | C-xnn |