Last Updated: February 25, 2016
· neofrascati

Improved console.log, Sublime Text Snippet

console log snippet for Sublime text

Speed up you debugging!

This will output a console.log with filename and number of the line.
If you keybind it, you can even select a text and wrap it up in the console.log() in one key.

called with "clog" + tab, or with a keybind of you choice.

     console.log("$TM_FILENAME :$TM_LINE_NUMBER", ${2:$SELECTION});