Hi, I have an insert_snippet
as follows
<snippet>
<content>
<![CDATA[
{/**${SELECTION} **/}
]]>
</content>
<tabTrigger>comment</tabTrigger>
<description>Comment React code</description>
<scope>meta.jsx.js, meta.tag.jsx</scope>
</snippet>
This will basically comment out the selected JSX code. My file has an extension .js
. I have also configured this snippet to work when alt+tshift+t
is pressed.
However, I am finding that the above snippet is also working on the following scopes as well (within the same file) which seems contrary to what is mentioned in the scope
of the snippet.
source.js meta.class.js meta.class.property.js meta.group.braces.curly.js variable.other.readwrite.js
Can you please let me know why this is happening?
Thanks