-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpp.json
More file actions
55 lines (54 loc) · 1.07 KB
/
cpp.json
File metadata and controls
55 lines (54 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": {
"prefix": "example",
"body": [
"Contents of the snippet",
"Where each element is each line of the snippet",
"Input parameters are added with ${1:id}",
"Elements are 1 indexed"
],
"description": "A given description"
},
"For_Loop": {
"prefix": "for",
"body": [
"for (${1:int i=0;i<v.size();i++}) {$0}"
],
"description": "For Loop"
},
"main": {
"prefix": "main",
"body": [
"int main() {\n\t$0\n}"
],
"description": "main function"
},
"include": {
"prefix": "Inc",
"body": [
"#include <${1:bits/stdc++.h}>\n$0"
],
"description": "include"
},
"include2": {
"prefix": "inc",
"body": [
"#include \"${1:bits/stdc++.h}\"\n$0"
],
"description": "include"
},
"namespace": {
"prefix": "namespace",
"body": [
"using namespace ${1:std};\n$0"
],
"description": "using namespace std"
},
"printf": {
"prefix": "print",
"body": [
"printf(${1:\"%d\",&a});$0"
],
"description": "printf function"
}
}