We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc07391 commit a8fe80aCopy full SHA for a8fe80a
server/src/snippets.ts
@@ -288,6 +288,22 @@ export const SNIPPETS: BashCompletionItem[] = [
288
'done',
289
].join('\n'),
290
},
291
+ {
292
+ label: 'while-getopts',
293
+ documentation: 'while with getopts argument-parsing',
294
+ insertText: [
295
+ 'while getopts "${1:patterns}" ${2:expression}; do',
296
+ '\tcase "\\${$2}" in',
297
+ '\t\t${3:pattern})',
298
+ '\t\t\t${4:command ...}',
299
+ '\t\t\t;;',
300
+ '\t\t*)',
301
+ '\t\t\t${5:command ...}',
302
303
+ '\tesac',
304
+ 'done',
305
+ ].join('\n'),
306
+ },
307
{
308
label: 'until',
309
documentation: 'until operator',
0 commit comments