Add custom snippets
parent
07343eb095
commit
37184ed3d6
@ -0,0 +1,3 @@
|
||||
snippet #! "Shebang" !b
|
||||
#!/usr/bin/env ${1:bash}
|
||||
endsnippet
|
@ -0,0 +1,15 @@
|
||||
snippet f "function"
|
||||
function ${1:function_name} (${2:argument}) {
|
||||
${VISUAL}$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet scf "self calling function"
|
||||
(function (${1:argument}) {
|
||||
${VISUAL}$0
|
||||
}(${2:$1}));
|
||||
endsnippet
|
||||
|
||||
snippet log "console.log"
|
||||
console.log(${1:"${2:value}"});
|
||||
endsnippet
|
@ -0,0 +1,3 @@
|
||||
snippet map "Map snippet"
|
||||
map(${1:lambda x: x}, ${2:[]})
|
||||
endsnippet
|
Loading…
Reference in New Issue