Create cursor programatically


#1

How can I create a multi line selections programatically? Like the ones you create by holding down Ctrl and clicking or what the autocomplete-snippets built-in package creates when you use for example the for snippet?


#2

The TextEditor methods addCursorAtBufferPosition() and addCursorAtScreenPosition().