v-snippets README
My personal snippets for javascript and typescript .
Features
Console Snippets
cl → console.log()
console.log($1$TM_SELECTED_TEXT);
$2
cl- → console.log('-----------------------------')
console.log('---------------- Log -----------------');
console.log($1)
console.log('-------------- Log End ---------------');
cw → console.warn()
console.warn($1);
$2
ce → console.error()
console.error($1);
$2
cd → console.debug()
console.debug($1);
$2
ci → console.info()
console.info($1);
$2
ct → console.time()
console.time('$1');
console.timeEnd('$1');
Function Snippets
f → function() {}
function() {
$1
}
f, → function() {},
function() {
$1
},
fn → function name() {}
function ${1:name}(){
$2
}
fc → (function () {})()
(function (){
$2
})()
> → () => $1
($1) => $2
>{ → () => {$1}
($1) => {
$2
}
Language Keyword Snippets
a → async
async
d → debugger;
debugger; // eslint-disable-line
r → return
return $1
r; → return $1;
return $1;
t → this
this
imp → import Module from 'module'
import $2 from '$1'
1.0.0
Initial release
| |