Skip to content

Instantly share code, notes, and snippets.

@wader
Created July 17, 2020 10:00
Show Gist options
  • Save wader/44c56e72052a4b3a4656133b69aa775c to your computer and use it in GitHub Desktop.
Save wader/44c56e72052a4b3a4656133b69aa775c to your computer and use it in GitHub Desktop.
vscode c printf snippets
{
"printf": {
"prefix": "pf",
"body": "printf(\"${0}\\\\n\");",
"description": "Snippet for printf %d variable"
},
"printf %d variable": {
"prefix": "pfd",
"body": "printf(\"${1:var}: %d\\\\n\", ${1:var});",
"description": "Snippet for printf %d variable"
},
"printf %x variable": {
"prefix": "pfx",
"body": "printf(\"${1:var}: %x\\\\n\", ${1:var});",
"description": "Snippet for printf %x variable"
},
"printf %s variable": {
"prefix": "pfs",
"body": "printf(\"${1:var}: %s\\\\n\", ${1:var});",
"description": "Snippet for printf %s variable"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment