How to specific selection start position and end position Follow
for example, there is following code:
1 line
2 line
I wanna specific start position as (1,1)("1" in "1 line") and specific end position as(2, 7) ("e" in "2 line"),
my question is How should I do that?
Please sign in to leave a comment.
Editor.getSelectionModel().setSelection()
To convert a line/column number to an offset, use Editor.logicalPositionToOffset()
I find following in JsonPlugin.xml