Skip to content

Instantly share code, notes, and snippets.

@gerardorf
Created June 9, 2014 15:11
Show Gist options
  • Save gerardorf/5fc6c0c8db744c29e4c3 to your computer and use it in GitHub Desktop.
Save gerardorf/5fc6c0c8db744c29e4c3 to your computer and use it in GitHub Desktop.
sublime snippet to generate a for-in loop
<snippet>
<content><![CDATA[
for (${1:obj} in ${2:array}){
${3:}
};
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>forin</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<description>for (obj in arr)</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment