Scroll to line in Monaco editor

Viewed 8662

I see there is a way to set scrolltop in monaco editor. How would one scroll to a specific line instead of a specific pixel?

2 Answers

I just want to add that if you want to scroll to the last line, you can use

editor.revealLine(editor.getModel().getLineCount())
Related