+1

Snippet for multiply scopes

baurzhan zhakashev 5 years ago • updated by FichteFoll 5 years ago 1

<snippet>

    <content><![CDATA[

${1:var}['${2}']['${3}']

   ]]></content>

<!--      assert_equal(${1:expected}, ${0:actual}) -->

    <tabTrigger>var2</tabTrigger>

    <scope>source.php</scope>

    <scope>source.html</scope>

    <description>$var['']['']</description>

</snippet>


not working for scope.html

how to do it for several scopes

Scope selectors work like so:

 <scope>source.python, text.plain</scope>
See: https://manual.macromates.com/en/scope_selectors#scope_selectors