Live templates control order of variable with the same name

Answered

I have a live template like this for go

fmt.Printf("$VAR$ = %+v\n", $VAR$) // for debugging

this does what I wanted, but the cursor goes to the first $VAR$ which is inside of the string. What I want is for the cursor goes to the second $VAR$ so i can utilize code-completion to mentio the variable name/method.

 is there a way to do that?
0
1 comment

You need a copy of the variable with a different name that is set to be skipped when defined, soutv template is a good example:

1

Please sign in to leave a comment.