I have created the following custom string for autocomplete in the ace editor.
{
"\\sin{$1}",
"\\cos{$1}",
"\\tan{$1}",
...
}
I want to move the cursor position, after selecting this autocomplete suggestion, to the specified location. In the example above, I want to move the cursor to the position marked $1.
The image I have is a feature like the one in the user snippet in Visual Studio Code.If you write "$1" in the string of the registered snippet, the cursor will move there after selecting an autocomplete suggestion.
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
],
"description": "Log output to console"
}
Could you please suggest me how can I implement this?
Thanks in advance