I have a small snippet like this:
# -*- mode: snippet -*-
# name: options
# key: vop
# --
var options = {
target: '#$1',
beforeSubmit: showRequest,
success: showResponse
}$0
What I would like to do is to increment function name for each insertion. Like this:
var options1 = {
target: '#',
beforeSubmit: showRequest,
success: showResponse
}
var options2 = {
target: '#',
beforeSubmit: showRequest,
success: showResponse
}
etc... Is there a way to achieve this?