I have a live template like this
<div>$name$: $id$</div>
Now I want to set the default value of $id$ to name + "_id".
But when I put the default value of $id$ as name + "_id", in the "Edit Template Variables Dialog", the autocomplete does not concatenate value of name and (string) "_id" together. It only uses the value of name and ignored the "_id" part (for default value of $id$).
How can I make the default value of $id$ as name + "_id" in my live templates?
<tab>. It automatically expands to<div></div>with the cursor after<div>where I type a word. So for example, the text should become<div>foo = foo_id</div>when my word is "foo", but instead it only becomes<div>foo = foo</div>(the "_id" part is ignored)<div>$name$: $name$_id</div>is enoughconcat()function .. and I could not find a way to concatenate 2 strings in any other way. If you would use full IntelliJ IDEA you could use Groovy there and come up with something ... but it is not available in ordinary IDEs like PhpStorm.