Skip to content
Advertisement

Tag: monaco-editor

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. Answer I found a solution below for anyone who later needs this functionality. CSS: Javascript:

Advertisement