I want to make a Ultisnips snippet for auto completion of ()
, ""
, {}
, etc. I have Tab as my expand and jump forward key. My snippet is:
snippet ( "parenthesis" iA
(${1:${VISUAL}})$0
endsnippet
And it works great most of the times, but I sometimes have to write parenthesis or quotes without any text.
In that case I type (
and then it expands as ()
, but when I want to go out of the parenthesis by pressing Tab, it expands the snippet again and I'm left with ())
.
I have no idea how to change this based on the documentation; is there an option to configure this behavior? Or how should I configure this snippet?
)
or some other combination? With the$0
placeholder, I would expect you to be able to jump out using whatever keys jump between placeholders.$0
, but it is really convenient for me and i would like to know if there is a way to continue using it without changing the trigger key.)
right next to(
. Could I implement that?