Skip to content

Instantly share code, notes, and snippets.

@nmcv
Forked from anonymous/console.log.sublime-snippet
Created December 13, 2012 15:55
Show Gist options
  • Save nmcv/4277365 to your computer and use it in GitHub Desktop.
Save nmcv/4277365 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
Author

nmcv commented Dec 13, 2012

Will shove in selected text when execute from the command palette as well.

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