I have this snippet that are used in textmate:
var ${0:name} = ${1:"${2:value}"};
When this snippet get called, first the name
will be selected and I have a chance to type something and change the variable name. Press TAB again it will select "value"
, in this case if my value is a number (the quotes is not required) I can start to type a number and overwrite "name"
. If my value is a string, I can press TAB again and it will select name
(no quotes), I can actually type something and they will appear in the quotes. I want to know if this is doable in JetBrains software like Intellij IDEA and AppCode. I've tried but failed. Below is my code for JetBrains software.
var $name$ = "$value$";
I don't know how to give me a chance to select "value"
instead of directly selecting value
. Anyone can point me to the right direction? Thanks.