Skip to content

EditorView.visualLineSide method

EditorView › visualLineSide

Official

Get the cursor position visually at the start or end of a line.

Signature:

visualLineSide(line: Line, end: boolean): SelectionRange

Parameters:

ParameterTypeDescription
lineLineThe line.
endbooleanWhether to get the end position.

Returns: SelectionRangeThe selection range.