How do I change the selection behavior of the Monaco editor

Viewed 9

Let's say we have a string like: "id": "e35e5624-ff32-4558-8fc8-3a2e5055ed41" I want to select the full value of the id 'e35e5624-ff32-4558-8fc8-3a2e5055ed41' by 'double clicking' on the id field.

Currently, if I double click on the 4 after the second hyphen, only 4558 is selected. Tripple clicking selects the whole line.

The Selection interface described here https://microsoft.github.io/monaco-editor/api/classes/monaco.Selection.html is cryptic and there are no clear examples on how to use them

0 Answers
Related