1
0
Fork 0
mirror of synced 2024-11-23 09:15:35 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/dart.snippets

91 lines
1.2 KiB
Text
Raw Permalink Normal View History

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
library ${1};
${0}
2012-08-16 23:41:25 -04:00
snippet im
import 'package:${1}/${2}.dart';
${0}
snippet rgx
new RegExp(r'${1}')
snippet var
var ${1} = ${2};
2012-08-16 23:41:25 -04:00
snippet main
main() {
${0}
2012-08-16 23:41:25 -04:00
}
snippet st
static ${0}
2012-08-16 23:41:25 -04:00
snippet fi
final ${0}
2012-08-16 23:41:25 -04:00
snippet re
return ${0}
2012-08-16 23:41:25 -04:00
snippet br
break;
snippet th
throw ${0}
2012-08-16 23:41:25 -04:00
snippet cl
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
2012-08-16 23:41:25 -04:00
snippet in
interface ${1:`vim_snippets#Filename("", "untitled")`} ${0}
2012-08-16 23:41:25 -04:00
snippet imp
implements ${0}
2012-08-16 23:41:25 -04:00
snippet ext
extends ${0}
2012-08-16 23:41:25 -04:00
snippet if
if (${1:true}) {
${0}
2012-08-16 23:41:25 -04:00
}
snippet ife
if (${1:true}) {
${2}
} else {
${0}
2012-08-16 23:41:25 -04:00
}
snippet el
else
snippet sw
switch (${1}) {
${0}
2012-08-16 23:41:25 -04:00
}
snippet cs
case ${1}:
${0}
2012-08-16 23:41:25 -04:00
snippet de
default:
${0}
2012-08-16 23:41:25 -04:00
snippet for
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
${0:$1[$2]}
2012-08-16 23:41:25 -04:00
}
snippet fore
for (final ${2:item} in ${1:itemList}) {
${0}
2012-08-16 23:41:25 -04:00
}
snippet wh
while ($1) {
${0}
2012-08-16 23:41:25 -04:00
}
snippet dowh
do {
${0}
} while ($0);
2012-08-16 23:41:25 -04:00
snippet as
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 {
}