
Hi,
is it possible to replace the default of keywords from a snippet before/after it has been accepted and ONLY when the user hasn't changed it himself? For example the snippet is
<![CDATA[for ($index$ = 0; $index$ < $count$; $index$++) {
$selected$$end$
}]]>
That I can replace $index$ with anything I like, except the user changed it himself, in code so it automatically becomes
for (replacedInCode = 0; replacedInCode < $count$; replacedInCode ++){
}
The idea is that I can set up predefined keywords the user can take when creating his own snippets which are generated on runtime.
Something like snippet environments which were added in January to VS Code: https://code.visualstudio.com/updates/v1_20#_more-snippet-variables
[Modified 7 years ago]