how do I use Caretmodel.moveCaretrelatively to locate columns
Answered
hi
I am developing a plugin that supports custom language. I want to achieve fast repair function, create a class, and navigate to the class definition, position the cursor to a certain line, and generate an indentation. I use Caretmodel.moveCaretrelatively. His first parameter Columnshift does not seem to take effect in a blank row. What should I do?
Thanks
Please sign in to leave a comment.
Hi,
Please try to add an indent at first. Check:
It is not change, this is my code:
The order is important, so at first add indent, and then move the caret.