Last active
March 14, 2023 14:41
-
-
Save ramses-lopez/c263a82b75624959815b0336f99e97c1 to your computer and use it in GitHub Desktop.
VS Code snippets - *.rb
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 characters
{ | |
"byebug": { | |
"prefix": "bb", | |
"body": [ | |
"byebug" | |
], | |
"description": "Insert byebug call" | |
}, | |
"pry": { | |
"prefix": "bp", | |
"body": [ | |
"binding.pry" | |
], | |
"description": "Insert pry call" | |
}, | |
"debug": { | |
"prefix": "bk", | |
"body": [ | |
"binding.break" | |
], | |
"description": "Insert ruby/debug break call" | |
}, | |
"debug_do": { | |
"prefix": "bkd", | |
"body": [ | |
"binding.break do: '$1'" | |
], | |
"description": "Insert ruby/debug break call" | |
}, | |
"debug_pre": { | |
"prefix": "bkp", | |
"body": [ | |
"binding.break pre: '$1'" | |
], | |
"description": "Insert ruby/debug break call" | |
}, | |
"flunk": { | |
"prefix": "tbi", | |
"body": [ | |
"test \"\" do", | |
"\tflunk \"to be implemented\"", | |
"end" | |
], | |
"description": "Insert ruby/debug break call" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment