I want to make a ultisnipsUltisnips snippet for auto completion of ()
, ""
, {}
, etc. I have <tab>
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.
IntIn 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?