-1

Include trailing characters in a Snippet

Gitter 13 lat temu 0
In javascript, when you type parens or curlys, they are auto-closed for you.  It would be nice to have a snippet like this:

<snippet>
    <content>
<![CDATA[({
    ${1}
});
{$0}]]>
    </content>
    <tabTrigger>({</tabTrigger>
    <scope>source.js</scope>
    <description>Ext Config</description>
</snippet>

Problem is you can't include any trailing characters in a snippet, only the trigger text is included, so I have to leave off the ending and add the semicolon myself.