Go: Move to Window Line

nav.moveToWindowLine

Move the caret to the center, top, or bottom visible line.

How to run it

Open the command palette and search for Go: Move to Window Line, then press Enter. The palette opens with M-x in Emacs, Ctrl+Shift+P in CUA, Sublime Text and VS Code, and Ctrl+Shift+A in IntelliJ IDEA (⇧⌘P and ⇧⌘A on macOS). It also has a default keybinding:

KeymapWindows / LinuxmacOS
EmacsM-rM-r

See also