${1/(".*)|.*/(?1:comment => )/}${1:"some comment"}${1/(".*)|.*/(?1:,
)/}home => "/home/username",
(A) ${1/(".*)|.*/(?1:comment => )/}
└┤
└ mirror of tabstop n°1, on which you perform a substitution
(B) ${1:"some comment"}
└┤└────────────┤
│ └ placeholder text,
│ which fills the tabstop as long as you don't replace it
└ tabstop n° 1
┌ mirror of tabstop n°1, on which you perform a substitution
┌┤
(C) ${1/(".*)|.*/(?1:,
)/}home => "/home/username",
Here's a full snippet which should replicateimplement the behavior you observed in the video: