Skip to content

Instantly share code, notes, and snippets.

@ZeroDragon
Created May 11, 2013 03:43
Show Gist options
  • Save ZeroDragon/5558811 to your computer and use it in GitHub Desktop.
Save ZeroDragon/5558811 to your computer and use it in GitHub Desktop.
[
{
"keys": ["command+shift+r"], "command": "browser_refresh", "args": {
"auto_save": true,
"delay": 0.0,
"activate_browser": false,
"browser_name" : "all"
}
},
/* C O N S O L E L O G */
{
"keys": ["command+k","command+j"],
"command": "insert_snippet",
"args": {
"contents": "console.log(\"$SELECTION: \",$SELECTION);${0}${1:}"
},
"context":[
{ "key": "selection_empty", "operator": "not_equal", "operand": true, "match_all": true }
]
},
{
"keys": ["command+k","command+j"],
"command": "insert_snippet",
"args": {
"contents": "console.log(${1:});${0}"
},
"context":[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
/* E R R O R L O G */
{
"keys": ["command+k","command+p"],
"command": "insert_snippet",
"args": {
"contents": "error_log(print_r($SELECTION,true));${0}${1:}"
},
"context":[
{ "key": "selection_empty", "operator": "not_equal", "operand": true, "match_all": true }
]
},
{
"keys": ["command+k","command+p"],
"command": "insert_snippet",
"args": {
"contents": "error_log(print_r(${1:},true));${0}"
},
"context":[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment