-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsnippets.json
More file actions
83 lines (83 loc) · 1.26 KB
/
snippets.json
File metadata and controls
83 lines (83 loc) · 1.26 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"Function": {
"prefix": "func",
"body": [
"${1:function}($2) {",
"\t$0",
"}"
],
"description": "Function"
},
"Include": {
"prefix": "inc",
"body": [
"#include ${1:maps\\mp\\...};$0"
],
"description": "Include"
},
"Anim Tree": {
"prefix": "atr",
"body": [
"#using_animtree(\"${1:animtree}\");$0"
],
"description": "Anim Tree"
},
"If-statement": {
"prefix": "if",
"body": [
"if (${1:condition}) {",
"\t$0",
"}"
],
"description": "If-statement"
},
"If-else-statement": {
"prefix": "ife",
"body": [
"if (${1:condition}) {",
"\t$2",
"} else {",
"\t$0",
"}"
],
"description": "If-else-statement"
},
"For-loop": {
"prefix": "for",
"body": [
"for (${1:i = 0}; ${2:i < ?}; ${3:i++}) {",
"\t$0",
"}"
],
"description": "For-loop"
},
"While-loop": {
"prefix": "while",
"body": [
"while (${1:condition}) {",
"\t$0",
"}"
],
"description": "While-loop"
},
"Switch-statement": {
"prefix": "switch",
"body": [
"switch (${1:expression}) {",
"case ${2:value}:",
"\t$0",
"\tbreak;",
"}"
],
"description": "Switch-statement"
},
"Case": {
"prefix": "case",
"body": [
"case ${1:value}:",
"\t$0",
"\tbreak;"
],
"description": "Case"
}
}