forked from irinazheltisheva/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvb.code-snippets
More file actions
86 lines (86 loc) · 1.62 KB
/
Copy pathvb.code-snippets
File metadata and controls
86 lines (86 loc) · 1.62 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
84
85
86
{
"For Next Loop": {
"prefix": "for",
"body": [
"For ${1:index} As ${2:ObjectType} = ${3:lower} To ${4:Upper}",
"\t$0",
"Next ${1:index}"
],
"description": "For Next Loop"
},
"For Each...Next": {
"prefix": "fore",
"body": [
"For Each ${1:Variable} As ${2:ObjectType} In ${3:Collection}",
"\t$0",
"Next"
],
"description": "For Each...Next"
},
"For i...Next i": {
"prefix": "fori",
"body": [
"For i As ${1:Integer} = ${2:Lower} To ${3:Upper}",
"\t$0",
"Next i"
],
"description": "For i...Next i"
},
"For j...Next j": {
"prefix": "forj",
"body": [
"For j As ${1:Integer} = ${2:Lower} To ${3:Upper}",
"\t$0",
"Next j"
],
"description": "For j...Next j"
},
"Public Function...": {
"prefix": "pf",
"body": [
"Public Function ${1:FunctionName}(${2:ParameterList}) As ${3:ReturnType}",
"\tTry",
"\t\t$0",
"\tCatch ex As Exception",
"\tEnd Try",
"\tReturn ${3:ReturnValue}",
"End Function"
],
"description": "Public Function..."
},
"Public Sub ...": {
"prefix": "ps",
"body": [
"Public Sub ${1:ProcedureName}(${2:ParameterList})",
"\tTry",
"\t\t$0",
"\tCatch ex As Exception",
"\tEnd Try",
"End Sub"
],
"description": "Public Sub ..."
},
"While ... End While": {
"prefix": "while",
"body": [
"While ${1:Boolean}",
"\t$0",
"End While"
],
"description": "While ... End While"
},
"Region Start": {
"prefix": "#Region",
"body": [
"#Region $0"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#End Region",
"body": [
"#End Region"
],
"description": "Folding Region End"
}
}