scrollIntoView

scrollIntoView scrolls the view to the current selection or cursor position.

Usage

editor.commands.scrollIntoView()