Fix our snippets to be text mate compatible

This commit is contained in:
Johannes Rieken
2016-11-11 17:13:29 +01:00
parent 613dd2eb19
commit cf5c011529
8 changed files with 193 additions and 258 deletions
+38 -38
View File
@@ -1,57 +1,57 @@
{
"For Next Loop": {
"prefix": "for",
"body": [
"For ${index} As ${ObjectType} = ${lower} To ${Upper}",
"For Next Loop": {
"prefix": "for",
"body": [
"For ${1:index} As ${2:ObjectType} = ${3:lower} To ${4:Upper}",
"\t$0",
"Next ${index}"
"Next ${1:index}"
],
"description": "For Next Loop"
},
"For Each...Next": {
"prefix": "fore",
"body": [
"For Each ${Variable} As ${ObjectType} In ${Collection}",
},
"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 ${Integer} = ${Lower} To ${Upper}",
},
"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 ${Integer} = ${Lower} To ${Upper}",
},
"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 ${FunctionName}(${ParameterList}) As ${ReturnType}",
},
"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 ${ReturnValue}",
"\tReturn ${3:ReturnValue}",
"End Function"
],
"description": "Public Function..."
},
"Public Sub ...": {
"prefix": "ps",
"body": [
"Public Sub ${ProcedureName}(${ParameterList})",
},
"Public Sub ...": {
"prefix": "ps",
"body": [
"Public Sub ${1:ProcedureName}(${2:ParameterList})",
"\tTry",
"\t\t$0",
"\tCatch ex As Exception",
@@ -59,14 +59,14 @@
"End Sub"
],
"description": "Public Sub ..."
},
"While ... End While": {
"prefix": "while",
"body": [
"While ${Boolean}",
},
"While ... End While": {
"prefix": "while",
"body": [
"While ${1:Boolean}",
"\t$0",
"End While"
],
"description": "While ... End While"
}
}
}
}