-
Notifications
You must be signed in to change notification settings - Fork 0
/
engplussnippet.json.code-snippets
127 lines (126 loc) · 2.41 KB
/
engplussnippet.json.code-snippets
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Print to console": {
"scope": "engplus",
"prefix": "repeat",
"body": [
"Repeat "
],
"description": "repeat"
},
"main scope": {
"scope": "engplus",
"prefix": "start",
"body": [
"When it starts",
"\t"
],
"description": "main scope"
},
"new class": {
"scope": "engplus",
"prefix": "class",
"body": [
"Class object type $1",
"\tprivate",
"\t\t",
"\tpublic",
"\t\tWhen $1 created",
"\t\t\t$2",
""
],
"description": "new class"
},
"stdandard pack": {
"scope": "engplus",
"prefix": "lst",
"body": [
"library standard",
""
],
"description": "stdpack"
},
"for": {
"scope": "engplus",
"prefix": "for",
"body": [
"For ${2:element} of ${1:array}",
"\t"
],
"description": "for loop"
},
"while": {
"scope": "engplus",
"prefix": "while",
"body": [
"While $1",
"\t"
],
"description": "whille"
},
"let": {
"scope": "engplus",
"prefix": "let",
"body": [
"Let "
],
"description": "new variable"
},
"letas": {
"scope": "engplus",
"prefix": "letas",
"body": [
"Let ${1:variable} as ${2:val}"
],
"description": "let ~ as"
},
"have": {
"scope": "engplus",
"prefix": "have",
"body": [
"Have ${1:variable} as ${2:value}"
],
"description": "have"
},
"new var": {
"scope": "engplus",
"prefix": "new",
"body": [
"${1|Let ,Have ,Make |}"
],
"description": "new variable"
},
"log": {
"scope": "engplus",
"prefix": "log",
"body": [
"It printf about \"$1\\n\"",
""
],
"description": "printf"
},
"when": {
"scope": "engplus",
"prefix": ["when", "func"],
"body": [
"When it ${1:name}",
"\t$2"
],
"description": "function definition"
},
"elif": {
"scope": "engplus",
"prefix": "elif",
"body": [
"else if ${1:name}",
"\t$2"
],
"description": "else if"
},
}