Skip to content

Commit 1e17a6d

Browse files
EmilySeville7cfgEmilySeville7cfg
EmilySeville7cfg
authored and
EmilySeville7cfg
committed
Keep just long prefixes
1 parent 1e7f641 commit 1e17a6d

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

vscode-client/snippets/snippets.json

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"shebang": {
33
"description": "[sh]hebang",
4-
"prefix": [
5-
"sh",
6-
"shebang"
7-
],
4+
"prefix": "shebang",
85
"body": [
96
"#!/usr/bin/env ${1|bash,sh|}"
107
]
@@ -20,10 +17,7 @@
2017
},
2118
"if-else": {
2219
"description": "[if] [e]lse",
23-
"prefix": [
24-
"ife",
25-
"if-else"
26-
],
20+
"prefix": "if-else",
2721
"body": [
2822
"if ${1:command}; then",
2923
"\t${2:echo}",
@@ -34,10 +28,7 @@
3428
},
3529
"while": {
3630
"description": "[wh]ile",
37-
"prefix": [
38-
"wh",
39-
"while"
40-
],
31+
"prefix": "while",
4132
"body": [
4233
"while ${1:command}; do",
4334
"\t$0",
@@ -46,10 +37,7 @@
4637
},
4738
"until": {
4839
"description": "[un]til",
49-
"prefix": [
50-
"un",
51-
"until"
52-
],
40+
"prefix": "until",
5341
"body": [
5442
"until ${1:command}; do",
5543
"\t$0",
@@ -58,10 +46,7 @@
5846
},
5947
"for": {
6048
"description": "[fo]r",
61-
"prefix": [
62-
"fo",
63-
"for"
64-
],
49+
"prefix": "for",
6550
"body": [
6651
"for ${1:variable} in ${2:list}; do",
6752
"\t$0",
@@ -70,10 +55,7 @@
7055
},
7156
"function": {
7257
"description": "[fu]nction",
73-
"prefix": [
74-
"fu",
75-
"function"
76-
],
58+
"prefix": "function",
7759
"body": [
7860
"${1:function_name}() {",
7961
"\t$0",
@@ -82,10 +64,7 @@
8264
},
8365
"main": {
8466
"description": "[ma]in",
85-
"prefix": [
86-
"ma",
87-
"main"
88-
],
67+
"prefix": "main",
8968
"body": [
9069
"main() {",
9170
"\t$0",
@@ -227,10 +206,7 @@
227206
},
228207
"stream": {
229208
"description": "[de]vice name",
230-
"prefix": [
231-
"de",
232-
"dev"
233-
],
209+
"prefix": "dev",
234210
"body": [
235211
"/dev/${1|null,stdin,stdout,stderr|}"
236212
]

0 commit comments

Comments
 (0)