Programmatically set multiple cursors #22
squarewave17
started this conversation in
General
Replies: 1 comment 1 reply
-
You can try the following methods: for (let i = 1, len = editor?.lineCount(); i < len; i++) {
editor.addSelection({ line: i, ch: 0 });
}
editor.focus(); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to set a cursor at the beginning of each line, like you would with alt + click. There doesn't seem to be a way to do it with setCursor(). Does anyone know of a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions