| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Switch statement
- snippet switch "switch statement" b
- switch(${1:var}){
- case ${2:condition}:
- ${3}
- ${4:break;}
- ${5}
- default:
- ${6}
- }$0
- endsnippet
- snippet case "add a case to a switch statment"
- case ${1:condition}:
- ${2}
- ${3:break;}
- ${0}
- endsnippet
- snippet if "if (cond){ ... }"
- if (${1:cond}){
- ${2}
- } ${0}
- endsnippet
- snippet ife "if (cond){ ... } else { ... }"
- if (${1:cond}){
- ${2}
- } else {
- ${3}
- } ${0}
- endsnippet
- snippet el "else { ... }"
- else {
- ${3}
- } ${0}
- endsnippet
- # vim: set ft=snippets:
|