I am interested in if there is a mean to indicate where the writing the variable name should start
e.g if I call this live template:
console.log('$TEXT$', $TEXT$);
^
It will start writing from the first TEXT variable.
I want to start writing from the second one:
console.log('$TEXT$', $TEXT$);
^
Indicate the order of focusing the same variable
You cannot do that: each variable is processed only once.
The solution is to apply a simple workaround: create an additional/intermediate variable that will automatically get the same value from the first variable and arrange them in the desired order.
Create a new variable and give it different name (e.g. $VAR$):
console.log('$TEXT$', $VAR$);$END$
NOTE: I've also added $END$ to denote final cursor position
Click on the Edit variables button.
Rearrange variables in desired order (using Up / Down buttons on the right side).
Assign default value for TEXT variable: make it to accept the value that you will enter for VAR variable.
Also check the Skip if defined checkbox if you do not plan to edit the TEXT value while filling the variables.

Result: only 1 place to enter variable name (code completion is available if needed) and the entered value is automatically copied into the text field (which you can still edit later once you're done with expanding the template).

Related StackOverflow questions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With