Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2012 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4277361 to your computer and use it in GitHub Desktop.
Save anonymous/4277361 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet to add console.log() quickly to your JavaScript/jQuery source code
<snippet>
<content><![CDATA[
/* @DEBUG_START */
//console.log("$SELECTION$1");
/* @DEBUG_END */
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>@log</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<scope>source.js.jquery</scope>
<description>console.log()</description>
</snippet>
@nmcv
Copy link

nmcv commented Dec 13, 2012

GitHub didn't read my cookie well and called me anonymous ):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment