Snippets
cl⇥
console.log()
console.log($1)
clg⇥
log clipboard content ($CLIPBOARD: clipboard content)
console.log('$CLIPBOARD:', $CLIPBOARD)
Functions
df⇥
default function
function foo() {
}
af⇥
arrow function
() => {}
met⇥
method
methodName() {
}
caf⇥
const arrow function
const foo = () => {
}
ecaf⇥
export const arrow function
export const foo = () => {
}
edf⇥
export default function
export function foo() {
}
ec⇥
export const
export const ${1:foo} = ${2}
ed⇥
export default
export default ${1}
;(() => {
})()
$⇥
document.querySelector()
document.querySelector('$1')
$$⇥
document.querySelectorAll()
document.querySelectorAll('$1')
rt⇥
return
return
t⇥
true
true
f⇥
false
false
##⇥
function annotation
/**
* functionName
* @param {any}
* @returns {any}
*/
#⇥
variable annotation
/**
* functionName
* @param {any}
* @returns {any}
*/
us⇥
use strict
'use strict'
TypeScript
interface⇥
interface Name {
property: any
}
enum⇥
enum EnumName {
VALUE1 = 'VALUE1',
VALUE2 = 'VALUE2',
VALUE3 = 'VALUE3',
}
einterface⇥
export interface
export interface Name {
property: any
}
eenum⇥
export enum
export enum EnumName {
VALUE1 = 'VALUE1',
VALUE2 = 'VALUE2',
VALUE3 = 'VALUE3',
}
cenum⇥
export const enum
export const enum EnumName {
VALUE1 = 'VALUE1',
VALUE2 = 'VALUE2',
VALUE3 = 'VALUE3',
}