Sublime Forum

Weird snippet tab behaviour

#1

The tabulation has a weird behavior after you use a snippet with multiple cursor positions
How to reproduce error:
Use a snippet with multiple cursor positions (printf, for example), erase all with ctrl + l and backspace or ctrl + delete, now try to use tabs, but it just won’t work.

int main()
{
printf("%s\n", );
(cursor come to here!)}

This is bothering me when i delete a snippet and write code again, i don’t know why the cursor just ignores the tabs (for the amount of cursor positions left in snippets created to cicle through ($2 and $1))

malloc(sizeof($1) * $0);
This snippet will create this error 1 time, because it will have 1 cursor position left unused after his use

The solution might be delete this functionality when the snippet is deleted

0 Likes

#2
0 Likes

#3

So the status bar show the fields left to cicle :smile:, and it stacks up as you creates more snippets
Thanks @kingkeith for the ‘escape’ solution, however this problem still bothering me :confused:

0 Likes