Multiple cursor by clicking

Hello: How can I implement multiple cursors by clicking.

Example: PopSql

See allowMultipleSelections and clickAddsSelectionRange.

For future multi-cursor users’ reference:

  • Click to Create Multiple Cursors (EditorView.clickAddsSelectionRange ). Bound to Ctrl (macOS: Cmd) + Click by default.
  • Drag to Create Multiple Cursors ( rectangularSelection() ). Bound to Alt (macOS: Option) + Drag.

This differs from VS Code which is

  • Click to Create Multiple Cursors: Bound to Alt (macOS: Option) + Click.
  • Drag to Create Multiple Cursors: Bound to Alt (macOS: Option) + Shift + Drag.

I couldn’t figure out why creating multiple cursors wasn’t working as expected and I was just using the wrong keys.