Skip to content

Instantly share code, notes, and snippets.

@ramses-lopez
Last active March 14, 2023 14:41
Show Gist options
  • Save ramses-lopez/c263a82b75624959815b0336f99e97c1 to your computer and use it in GitHub Desktop.
Save ramses-lopez/c263a82b75624959815b0336f99e97c1 to your computer and use it in GitHub Desktop.
VS Code snippets - *.rb
{
"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