I'm trying to create a JavaScript arrow function snippet in SublimeText. It should be available when I type an open paren: (
. I want to be able to tab to create this:
() => {}
With auto match enabled (a feature I like, normally), I can't figure out how to avoid this:
() => {})
Here is the code I have so far, which works great except for the auto match issue:
<snippet>
<content><![CDATA[
(${1}) => {$2}
]]></content>
<tabTrigger>(</tabTrigger>
<scope>source.js</scope>
</snippet>