Skip to content

How can I start multiple selections (cursors) in a text editor? #39

Discussion options

You must be logged in to vote

You set multiple cursors by assigning selections

textEditor.selections = [
	new Selection(0, 1, 0, 1),
	new Selection(0, 2, 0, 2),
];

TypeScript types show:

selections: readonly Selection[];

It would have been readonly property if it was a prefix:

readonly selections: readonly Selection[];

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lgrammel
Comment options

Answer selected by lgrammel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants