Skip to content

Instantly share code, notes, and snippets.

@jacksonpires
Created May 5, 2023 19:43
Show Gist options
  • Save jacksonpires/a845674863e2722ee98feb7e3da6cac4 to your computer and use it in GitHub Desktop.
Save jacksonpires/a845674863e2722ee98feb7e3da6cac4 to your computer and use it in GitHub Desktop.
VsCode Snippets
{
"Print asterisk line": {
"prefix": "line",
"body": [
"p '*' * 100"
],
"description": "Print a asterisk line"
},
"Print and inspect a element": {
"prefix": "insp",
"body": [
"p \">>>>>> $1: #{$1.inspect}\"",
"p '*' * 100"
],
"description": "rint and inspect a element"
},
"Debug a element": {
"prefix": "debug",
"body": [
"p \">>>>>> $1: #{$1.inspect}\"",
"p '*' * 100"
],
"description": "print and inspect a element"
},
"Debug a Hash element": {
"prefix": "hashdebug",
"body": [
"pp \">>>>>> $1: #{JSON.pretty_generate($1)}\"",
"p '*' * 100"
],
"description": "rint and inspect a element"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment