Skip to content

CodeMirrorEditor.setSelections method

CodeMirrorEditor › setSelections

Unofficial

Set multiple selections, optionally specifying the primary selection index.

Signature:

setSelections(selections: EditorSelection[], primaryIndex?: number): void

Parameters:

ParameterTypeDescription
selectionsEditorSelection[]The selections to set.
primaryIndex?numberThe index of the primary selection.

Returns: void