-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
65 lines (65 loc) · 1.29 KB
/
snippets.json
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
55
56
57
58
59
60
61
62
63
64
65
{
"Function": {
"prefix": "func",
"body": [
"func ${1:name}($2) {",
" $0",
"}"
],
"description": "function snippet"
},
"if statement": {
"prefix": "if",
"body": [
"if ${1:condition} {",
" $0",
"}"
],
"description": "if statement"
},
"elif statement": {
"prefix": "elif",
"body": [
"elif ${1:condition} {",
" $0",
"}"
],
"description": "if statement"
},
"if else statement": {
"prefix": "if else",
"body": [
"if ${1:condition} {",
" $2",
"}",
"else {",
" $0",
"}\n"
],
"description": "if, else statement"
},
"for loop": {
"prefix": "for",
"body": [
"for ${1:condition} {",
" $0",
"}"
]
},
"while loop": {
"prefix": "while",
"body": [
"while ${1:condition} {",
" $0",
"}"
]
},
"class": {
"prefix": "class",
"body": [
"class ${1:name}($2){",
" $0",
"}"
]
}
}