Skip to content

Instantly share code, notes, and snippets.

@enheit
Created November 10, 2018 17:57
Show Gist options
  • Save enheit/cf1a92531e5b48d8e0d3b6fc6ad8800c to your computer and use it in GitHub Desktop.
Save enheit/cf1a92531e5b48d8e0d3b6fc6ad8800c to your computer and use it in GitHub Desktop.
Print message to the console using file name and line number as a prefix
{
"Console log decorator": {
"prefix": "cl",
"scope": "javascript,typescript",
"body": ["console.log('($TM_FILENAME:$TM_LINE_NUMBER)', $0);"],
"description": "Print message to the console using file name and line number as a prefix"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment