Last active
September 23, 2020 16:57
-
-
Save tamirazrab/bc1fe39ff09188c06b58ac94c8624970 to your computer and use it in GitHub Desktop.
Simple but useful snippets for cpp.
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
| { | |
| "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