designerNProgrammer
designerNProgrammer

Reputation: 2701

Not able to use Snippet in javascript

i created this alert snippet . But somehow it's not working for Javascript. I hope i got the credentials right. Here is the snippet

    <snippet>
    <content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>ale</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.JavaScript</scope>
</snippet>

Upvotes: 0

Views: 31

Answers (1)

Lou Franco
Lou Franco

Reputation: 89172

Every other example I see for JavaScript uses source.js, not source.JavaScript

Edit: Here's a list https://gist.github.com/iambibhas/4705378 -- can't find it in official documentation. JavaScript is source.js according to this.

Upvotes: 1

Related Questions