File: Export Selection to PDF…
editor.exportSelectionPdf Export the selected lines of the current file to a PDF, numbered as in the file.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for File: Export Selection to PDF…, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.