2024-01-07 10:14:20 -05:00
|
|
|
snippet af
|
|
|
|
(${1}) {${2}}${0}
|
|
|
|
snippet pr
|
|
|
|
print(${1});
|
|
|
|
snippet deb
|
|
|
|
debugger();
|
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet lib
|
2017-11-24 08:54:40 -05:00
|
|
|
library ${1};
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet im
|
2017-11-24 08:54:40 -05:00
|
|
|
import 'package:${1}/${2}.dart';
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2017-11-24 08:54:40 -05:00
|
|
|
snippet rgx
|
|
|
|
new RegExp(r'${1}')
|
|
|
|
snippet var
|
|
|
|
var ${1} = ${2};
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet main
|
2017-11-24 08:54:40 -05:00
|
|
|
main() {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet st
|
2013-11-16 14:45:48 -05:00
|
|
|
static ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet fi
|
2013-11-16 14:45:48 -05:00
|
|
|
final ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet re
|
2013-11-16 14:45:48 -05:00
|
|
|
return ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet br
|
|
|
|
break;
|
|
|
|
snippet th
|
2013-11-16 14:45:48 -05:00
|
|
|
throw ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet cl
|
2013-11-16 14:45:48 -05:00
|
|
|
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet in
|
2013-11-16 14:45:48 -05:00
|
|
|
interface ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet imp
|
2013-11-16 14:45:48 -05:00
|
|
|
implements ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ext
|
2013-11-16 14:45:48 -05:00
|
|
|
extends ${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet if
|
|
|
|
if (${1:true}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet ife
|
|
|
|
if (${1:true}) {
|
|
|
|
${2}
|
|
|
|
} else {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet el
|
|
|
|
else
|
|
|
|
snippet sw
|
|
|
|
switch (${1}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet cs
|
|
|
|
case ${1}:
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet de
|
|
|
|
default:
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet for
|
|
|
|
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:$1[$2]}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet fore
|
|
|
|
for (final ${2:item} in ${1:itemList}) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet wh
|
2022-09-20 04:08:31 -04:00
|
|
|
while ($1) {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2012-08-16 23:41:25 -04:00
|
|
|
}
|
|
|
|
snippet dowh
|
|
|
|
do {
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2022-09-20 04:08:31 -04:00
|
|
|
} while ($0);
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet as
|
2022-09-20 04:08:31 -04:00
|
|
|
assert($0);
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet try
|
|
|
|
try {
|
2017-02-11 08:01:38 -05:00
|
|
|
${0:${VISUAL}}
|
2012-08-16 23:41:25 -04:00
|
|
|
} catch (${1:Exception e}) {
|
|
|
|
}
|
|
|
|
snippet tryf
|
|
|
|
try {
|
2017-02-11 08:01:38 -05:00
|
|
|
${0:${VISUAL}}
|
2012-08-16 23:41:25 -04:00
|
|
|
} catch (${1:Exception e}) {
|
|
|
|
} finally {
|
|
|
|
}
|