Skip to content

Instantly share code, notes, and snippets.

@shturm
Created March 3, 2014 13:01
Show Gist options
  • Save shturm/9324474 to your computer and use it in GitHub Desktop.
Save shturm/9324474 to your computer and use it in GitHub Desktop.
Sublime text 2/3 snippet for console.log() in Javascript. To install place the file with this content in Linux: ~/.config/sublime-text-3/Packages/User/consolelog.sublime-snippet or Windows: SUBLIMEINSTALLROOT\Packages\User\consolelog.sublime-snippet. The actual file name doesn't matter, only the extension does.
<snippet>
<content><![CDATA[
console.log(${1:'${2:}'});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>con</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment