Skip to content

Instantly share code, notes, and snippets.

@olivierlacan
Last active December 22, 2015 21:19
Show Gist options
  • Save olivierlacan/6532035 to your computer and use it in GitHub Desktop.
Save olivierlacan/6532035 to your computer and use it in GitHub Desktop.
My Debug Killer (Sublime Text plugin available on Package Control) configuration to catch console.log statements and debugger statements in either JavaScript or CoffeeScript.
{
"patterns": [
{
"pattern": "(console\\.log\\(.*?\\))",
"scopes": [
"storage.type.function.js",
"meta.function.json.js",
"source.js"
]
},
{
"pattern": "(debugger)",
"scopes": [
"storage.type.function.js",
"meta.function.json.js",
"source.coffee"
]
},
{
"pattern": "(console\\.log)",
"scopes": [
"source.coffee"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment