Skip to content
Advertisement

Add Line Bookmarks to Monaco-Editor

Is there any way to bookmark a line in Monaco-editor, similar to VSCode bookmarks? It seems there is no such built-in feature. If so, how can I show a marker in front of a line? Something like a breakpoint will also be acceptable.

Advertisement

Answer

I found a solution below for anyone who later needs this functionality.

CSS:

JavaScript

Javascript:

JavaScript
Advertisement