Skip to content

Instantly share code, notes, and snippets.

@manters2000

manters2000/sublime.txt

Last active Dec 3, 2015
Embed
What would you like to do?
Useful Sublime Text Snippets
<snippet>
<content><![CDATA[
(function(){
$0
})();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>siaf</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 -->
<content><![CDATA[console.log($1);$0]]></content>
<tabTrigger>conl</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>
<snippet>
<!-- put this in another file /packages/User/<Folder Name>/console_dir.sublime-snippet then restart your Sublime Text 2 -->
<content><![CDATA[console.dir($1);$0]]></content>
<tabTrigger>cond</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.dir()</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.