TypeScript
VS Code TypeScript snippets
This extension contains code snippets for TypeScript syntax for [Vs Code][code] editor (supports both JavaScript and TypeScript).
Supported languages (file extensions)
- JavaScript (.js)
- TypeScript (.ts)
Author
@email: zhangpan.html@gmail.com
@github: https://github.com/zhangpanchina/vscode-typescript-snippets
Snippets
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
Console methods in javascript or typescript
Trigger |
Content |
Description |
clog→ |
console.log('@@@clipboard===>' your clipboard) |
Console the contents of your clipboard |
cdir→ |
console.dir('@@@clipboard===>' your clipboard) |
Console the directory of your clipboard |
cerr→ |
console.error() |
|
ctab→ |
console.table(your clipboard) |
Console the table of contents of your clipboard |
ccle→ |
console.clear() |
Clear console |
ccou→ |
console.count('How many times is line X executed?') |
|
ctim→ |
console.time('Timer Init') |
Start time-consuming monitoring |
cted→ |
console.timeEnd('Timer Init') |
End time-consuming monitoring |
| |