Skip to content

Instantly share code, notes, and snippets.

@tamirazrab
Last active September 23, 2020 16:57
Show Gist options
  • Select an option

  • Save tamirazrab/bc1fe39ff09188c06b58ac94c8624970 to your computer and use it in GitHub Desktop.

Select an option

Save tamirazrab/bc1fe39ff09188c06b58ac94c8624970 to your computer and use it in GitHub Desktop.
Simple but useful snippets for cpp.
{
"Boiler Code":{
"prefix": "inc",
"body": [
"#include <iostream>\n",
"using namespace std;\n",
"int main() {",
"\t$0",
"\treturn 0; // Good to go",
"}"
],
"description": "Creates boiler-code for cpp files."
},
"Input":{
"prefix": "cin",
"body": "cin >> $input;\n$0",
"description": "Handy for taking input."
},
"Output":{
"prefix": "couts",
"body": "cout << \"${1:type your message here}\" << endl;\n$0",
"description": "Simple cout version."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment