Created
March 28, 2012 16:12
-
-
Save mainerror/2227870 to your computer and use it in GitHub Desktop.
Sublime Text 2 JavaScript self-executing function expression snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <snippet> | |
| <content><![CDATA[(function() { | |
| ${0:$TM_SELECTED_TEXT} | |
| })();]]></content> | |
| <tabTrigger>funcx</tabTrigger> | |
| <scope>source.js</scope> | |
| <description>Self-executing function expression</description> | |
| </snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All you have to do is to download that file and save it in
~/.config/sublime-text-2/Packages/User/JavaScriptNext time you type
funxand hit Tab it will result in a function expression optionally wrapping previously selected text.