Let’s say I’m using LaTeX. I’m using the snippet which makes frac
into \frac{$1}{$2}
.
However, if I want to insert another \frac{}{}
in the first pair or braces of the frac
, it doesn’t work. Here’s what happens.
% Type `frac` to expand
frac|
% Press tab
\frac{|}{}
% Type another `frac` to expand
\frac{frac|}{}
% Press tab
\frac{frac}{|}
% Nooo! Not what I wanted. It should have expanded the second `frac`, instead of going to the next field:
\frac{\frac{|}{}}{}
Essentially I want to tell Sublime Text to prefer expanding a snippet over moving to the next snippet field if I’m already in a snippet. I’ve looked at the keybindings but I don’t really get how to do it.
I feel like this is a problem which would be extremely common, so I’m sure there’s a simple solution for it. Unfortunately my googling didn’t lead to much.