1

Suppose my snippet is:

<snippet>
    <content><![CDATA[
1example \> 
]]></content>
    <tabTrigger>1e</tabTrigger>
    <scope>text.tex.latex</scope>
</snippet>

and suppose I need several other similar snippets:

<snippet>
    <content><![CDATA[
2example \> 
]]></content>
    <tabTrigger>2e</tabTrigger>
    <scope>text.tex.latex</scope>
</snippet>

Is it possible to define the snippet in such a way that, say [some_number]e triggers the snippet and it expands like [some_number]example?

blackened
  • 261

1 Answers1

0

Afaik, there is no way to do this in a standard snippet. I can think of these two options:

  1. You handle the snippet part in Python (Example)

  2. You extend Emmet snippets with Latex support

idleberg
  • 1,392