2018-12-12 09:02:12 +00:00
|
|
|
snippet todo "// TODO"
|
|
|
|
// TODO $0
|
|
|
|
endsnippet
|
|
|
|
|
2019-02-09 22:15:36 +00:00
|
|
|
snippet if "if ( ... ) { ... }"
|
|
|
|
if ($1) {
|
|
|
|
$0
|
|
|
|
}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet cl; "console.log( ... );"
|
2018-12-12 09:02:12 +00:00
|
|
|
console.log($0);
|
|
|
|
endsnippet
|
|
|
|
|
2019-02-09 22:15:36 +00:00
|
|
|
snippet cl "console.log( ... )"
|
|
|
|
console.log($0)
|
|
|
|
endsnippet
|
|
|
|
|
2018-12-12 09:02:12 +00:00
|
|
|
snippet if "if ( ... ) { ... }"
|
|
|
|
if ($1) {
|
|
|
|
$0
|
|
|
|
}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet ifelse "if ( ... ) { ... } else { ... }"
|
|
|
|
if ($1) {
|
|
|
|
$2
|
|
|
|
} else {
|
|
|
|
$0
|
|
|
|
}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet for "for ( ... ) { ... }"
|
|
|
|
for (let ${1:index} = ${2:0}; $1 $3; $1${4:++}) {
|
|
|
|
$0
|
|
|
|
}
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
snippet st "setTimeout( ... )"
|
2019-07-30 11:35:37 +00:00
|
|
|
setTimeout(() => {$0
|
|
|
|
}, ${1:1000});
|
2018-12-12 09:02:12 +00:00
|
|
|
endsnippet
|
2019-08-22 20:11:43 +00:00
|
|
|
|
|
|
|
snippet jsx "import React ..."
|
|
|
|
import React from "react"
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<${1:div}>
|
|
|
|
$0
|
|
|
|
</$1>
|
|
|
|
)
|
|
|
|
endsnippet
|