I am using sublime text 3 autocompletion for JavaScript.
For if-statement, it added a semicolon at the end.
if (true) {};
Using JSHint, it gives me an error for most of my code written.
I would like to ask how to customise this autocompletion as my preference?
Open the Sublime Text Folder by going to Preferences → Browse Packages.
Then find the folder called JavaScript
Then open if.sublime-snippet and delete the semi-colon so your snippet now looks like this:
<snippet>
    <content><![CDATA[if (${1:true}) {${0:$TM_SELECTED_TEXT}}]]></content>
    <tabTrigger>if</tabTrigger>
    <scope>source.js</scope>
    <description>if</description>
</snippet>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With