Skip to content

Instantly share code, notes, and snippets.



Created Sep 24, 2012
What would you like to do?
Sublime Text keyboard shortcut for inserting dump() for Firefox JS dev.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment