Skip to content

Commit 132e236

Browse files
committed
Fix formatting of snippets file
1 parent 5dd428b commit 132e236

File tree

1 file changed

+122
-25
lines changed

1 file changed

+122
-25
lines changed

snippets/csharp.json

Lines changed: 122 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,59 @@
4040
},
4141
"Checked block": {
4242
"prefix": "checked",
43-
"body": ["checked", "{", "\t${TM_SELECTED_TEXT}$0", "}"],
43+
"body": [
44+
"checked",
45+
"{",
46+
"\t${TM_SELECTED_TEXT}$0",
47+
"}"
48+
],
4449
"description": "Checked block"
4550
},
4651
"Class": {
4752
"prefix": "class",
48-
"body": ["class ${1:Name}", "{", "\t$0", "}"],
53+
"body": [
54+
"class ${1:Name}",
55+
"{",
56+
"\t$0",
57+
"}"
58+
],
4959
"description": "Class"
5060
},
5161
"Console.WriteLine": {
5262
"prefix": "cw",
53-
"body": ["System.Console.WriteLine(${TM_SELECTED_TEXT}$0);"],
63+
"body": [
64+
"System.Console.WriteLine(${TM_SELECTED_TEXT}$0);"
65+
],
5466
"description": "Console.WriteLine"
5567
},
5668
"do...while loop": {
5769
"prefix": "do",
58-
"body": ["do", "{", "\t${TM_SELECTED_TEXT}$0", "} while (${1:true});"],
70+
"body": [
71+
"do",
72+
"{",
73+
"\t${TM_SELECTED_TEXT}$0",
74+
"} while (${1:true});"
75+
],
5976
"description": "do...while loop"
6077
},
6178
"Else statement": {
6279
"prefix": "else",
63-
"body": ["else", "{", "\t${TM_SELECTED_TEXT}$0", "}"],
80+
"body": [
81+
"else",
82+
"{",
83+
"\t${TM_SELECTED_TEXT}$0",
84+
"}"
85+
],
6486
"description": "Else statement"
6587
},
6688
"Enum": {
6789
"prefix": "enum",
68-
"body": ["enum ${1:Name}", "{", "\t$0", "}"],
90+
"body": [
91+
"enum ${1:Name}",
92+
"{",
93+
"\t$0",
94+
"}"
95+
],
6996
"description": "Enum"
7097
},
7198
"Implementing Equals() according to guidelines": {
@@ -149,7 +176,12 @@
149176
},
150177
"if statement": {
151178
"prefix": "if",
152-
"body": ["if (${1:true})", "{", "\t${TM_SELECTED_TEXT}$0", "}"],
179+
"body": [
180+
"if (${1:true})",
181+
"{",
182+
"\t${TM_SELECTED_TEXT}$0",
183+
"}"
184+
],
153185
"description": "if statement"
154186
},
155187
"Indexer": {
@@ -165,7 +197,12 @@
165197
},
166198
"Interface": {
167199
"prefix": "interface",
168-
"body": ["interface I${1:Name}", "{", "\t$0", "}"],
200+
"body": [
201+
"interface I${1:Name}",
202+
"{",
203+
"\t$0",
204+
"}"
205+
],
169206
"description": "Interface"
170207
},
171208
"Safely invoking an event": {
@@ -240,17 +277,29 @@
240277
},
241278
"Lock statement": {
242279
"prefix": "lock",
243-
"body": ["lock (${1:this})", "{", "\t ${TM_SELECTED_TEXT}$0", "}"],
280+
"body": [
281+
"lock (${1:this})",
282+
"{",
283+
"\t${TM_SELECTED_TEXT}$0",
284+
"}"
285+
],
244286
"description": "Lock statement"
245287
},
246288
"MessageBox.Show": {
247289
"prefix": "mbox",
248-
"body": ["System.Windows.Forms.MessageBox.Show(\"${1:Text}\");$0"],
290+
"body": [
291+
"System.Windows.Forms.MessageBox.Show(\"${1:Text}\");$0"
292+
],
249293
"description": "MessageBox.Show"
250294
},
251295
"Namespace": {
252296
"prefix": "namespace",
253-
"body": ["namespace ${1:Name}", "{", "\t$0", "}"],
297+
"body": [
298+
"namespace ${1:Name}",
299+
"{",
300+
"\t$0",
301+
"}"
302+
],
254303
"description": "Namespace"
255304
},
256305
"FileScopedNamespace": {
@@ -262,12 +311,20 @@
262311
},
263312
"#if": {
264313
"prefix": "ifd",
265-
"body": ["#if ${1:true}", "\t ${TM_SELECTED_TEXT}$0", "#endif"],
314+
"body": [
315+
"#if ${1:true}",
316+
"\t${TM_SELECTED_TEXT}$0",
317+
"#endif"
318+
],
266319
"description": "#if"
267320
},
268321
"#region": {
269322
"prefix": "region",
270-
"body": ["#region ${1:Name}", "\t ${TM_SELECTED_TEXT}$0", "#endregion"],
323+
"body": [
324+
"#region ${1:Name}",
325+
"\t${TM_SELECTED_TEXT}$0",
326+
"#endregion"
327+
],
271328
"description": "#region"
272329
},
273330
"Property and backing field": {
@@ -285,12 +342,16 @@
285342
},
286343
"propg": {
287344
"prefix": "propg",
288-
"body": ["public ${1:int} ${2:MyProperty} { get; private set; }$0"],
345+
"body": [
346+
"public ${1:int} ${2:MyProperty} { get; private set; }$0"
347+
],
289348
"description": "An automatically implemented property with a 'get' accessor and a private 'set' accessor. C# 3.0 or higher"
290349
},
291350
"prop": {
292351
"prefix": "prop",
293-
"body": ["public ${1:int} ${2:MyProperty} { get; set; }$0"],
352+
"body": [
353+
"public ${1:int} ${2:MyProperty} { get; set; }$0"
354+
],
294355
"description": "An automatically implemented property. C# 3.0 or higher"
295356
},
296357
"sim": {
@@ -306,25 +367,41 @@
306367
},
307368
"Struct": {
308369
"prefix": "struct",
309-
"body": ["struct ${1:Name}", "{", "\t$0", "}"],
370+
"body": [
371+
"struct ${1:Name}",
372+
"{",
373+
"\t$0",
374+
"}"
375+
],
310376
"description": "Struct"
311377
},
312378
"svm": {
313379
"prefix": "svm",
314-
"body": ["static void Main(string[] args)", "{", "\t$0", "}"],
380+
"body": [
381+
"static void Main(string[] args)",
382+
"{",
383+
"\t$0",
384+
"}"
385+
],
315386
"description": "void Main()"
316387
},
317388
"Switch statement": {
318389
"prefix": "switch",
319-
"body": ["switch (${1:switch_on})", "{", "\t$0", "\tdefault:", "}"],
390+
"body": [
391+
"switch (${1:switch_on})",
392+
"{",
393+
"\t$0",
394+
"\tdefault:",
395+
"}"
396+
],
320397
"description": "Switch statement"
321398
},
322399
"Try finally": {
323400
"prefix": "tryf",
324401
"body": [
325402
"try",
326403
"{",
327-
"\t ${TM_SELECTED_TEXT}$1",
404+
"\t${TM_SELECTED_TEXT}$1",
328405
"}",
329406
"finally",
330407
"{",
@@ -338,7 +415,7 @@
338415
"body": [
339416
"try",
340417
"{",
341-
"\t ${TM_SELECTED_TEXT}$1",
418+
"\t${TM_SELECTED_TEXT}$1",
342419
"}",
343420
"catch (${2:System.Exception})",
344421
"{",
@@ -350,22 +427,42 @@
350427
},
351428
"Unchecked block": {
352429
"prefix": "unchecked",
353-
"body": ["unchecked", "{", "\t ${TM_SELECTED_TEXT}$0", "}"],
430+
"body": [
431+
"unchecked",
432+
"{",
433+
"\t${TM_SELECTED_TEXT}$0",
434+
"}"
435+
],
354436
"description": "Unchecked block"
355437
},
356438
"Unsafe statement": {
357439
"prefix": "unsafe",
358-
"body": ["unsafe", "{", "\t ${TM_SELECTED_TEXT}$0", "}"],
440+
"body": [
441+
"unsafe",
442+
"{",
443+
"\t${TM_SELECTED_TEXT}$0",
444+
"}"
445+
],
359446
"description": "Unsafe statement"
360447
},
361448
"Using statement": {
362449
"prefix": "using",
363-
"body": ["using (${1:resource})", "{", "\t ${TM_SELECTED_TEXT}$0", "}"],
450+
"body": [
451+
"using (${1:resource})",
452+
"{",
453+
"\t${TM_SELECTED_TEXT}$0",
454+
"}"
455+
],
364456
"description": "Using statement"
365457
},
366458
"While loop": {
367459
"prefix": "while",
368-
"body": ["while (${1:true})", "{", "\t ${TM_SELECTED_TEXT}$0", "}"],
460+
"body": [
461+
"while (${1:true})",
462+
"{",
463+
"\t${TM_SELECTED_TEXT}$0",
464+
"}"
465+
],
369466
"description": "While loop"
370467
},
371468
"constructor": {
@@ -393,4 +490,4 @@
393490
],
394491
"description": "create xunit test method"
395492
}
396-
}
493+
}

0 commit comments

Comments
 (0)