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?

1
  • Instead of 1e -> 1example, just have e -> example Nov 3, 2015 at 21:03

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .