Skip to content

Instantly share code, notes, and snippets.

@harthur
Created September 24, 2012 10:23

Revisions

  1. harthur revised this gist Sep 24, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion snippet.md
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,6 @@ Go to `Sublime Text 2 > Preferences > Key Bindings - User` and add this JSON to
    ]
    ```

    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.
    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.
  2. harthur revised this gist Sep 24, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion snippet.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Go to `Sublime Text 2 > Preferences > Key Bindings - User` and add this JSON to
    "args": {
    "contents": "dump(${1:} + \"\\n\");${0}"
    },
    "description": "insert a dump() call at the current cursor location, tab once to jump past"
    "description": "insert a dump() call at the cursor, tab once to jump past"
    }
    ]
    ```
  3. harthur created this gist Sep 24, 2012.
    15 changes: 15 additions & 0 deletions snippet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    Go to `Sublime Text 2 > Preferences > Key Bindings - User` and add this JSON to the file:

    ```json
    [
    { "keys": ["super+shift+o"],
    "command": "insert_snippet",
    "args": {
    "contents": "dump(${1:} + \"\\n\");${0}"
    },
    "description": "insert a dump() call at the current cursor location, 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.