SublimeText 2 SIAF snippet

I was watching the free NetTuts (short U sound, oddly) “30 Days to Learn jQuery” series and Jeffery Way uses a SublimeText 2 code snippet “siaf” to quickly insert a self-invoking anonymous function.

If you’re a mac user, save this in
HD>Users>machinename>Library>Application Support>Sublime Text 2>Packages>User with whatever name you like that ends with .sublime-snippet

Grab from <snippet> to </snippet>
I named it siaf.sublime-snippet because I’m clever like that!

<snippet>
<content><![CDATA[
// function:
(function(){
	$0
})();

]]></content>


<tabTrigger>siaf</tabTrigger>
</snippet>

Comments

One Response to “SublimeText 2 SIAF snippet”

  1. John Classick on September 23rd, 2012 10:33 am

    ?

Leave a Reply