Go to Sublime Text 2 > Preferences > Key Bindings - User
and add this JSON to the file:
[
{ "keys": ["super+shift+o"],
"command": "insert_snippet",
"args": {
"contents": "dump(${1:} + \"\\n\");${0}"
},
"description": "insert a dump() call at the cursor, tab once to jump past"
}
]
Inserts a dump()
at the current cursor position and appends a + "\n"
after the cursor to add a newline to your output.
Tab once to jump past the entire statement after filling it in.