Created
September 24, 2012 10:23
Revisions
-
harthur revised this gist
Sep 24, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
harthur revised this gist
Sep 24, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 cursor, tab once to jump past" } ] ``` -
harthur created this gist
Sep 24, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.