Run: Save Run Configuration…
run.saveConfig Save the active file's main class as a run configuration.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for Run: Save Run Configuration…, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.