Skip to main content
Question not about the multiple-cursor package; revised question accordingly
Link

Multiple cursor insideoccurrences of variable in yasnippet snippet

Source Link
Nisba
  • 915
  • 8
  • 20

Multiple cursor inside yasnippet

I would like to do create a snippet in which the ${1:} command is present in multiple locations, allowing me to editing in multiple locations at once.

In particular I would like this snippet to work as "expected".

cout << "${1:} = " << ${1:} << "\n";

usage:

  1. type cout

  2. expand the snippet

  3. type the name of the variable you want to print