0

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>

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.