Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>TypeScript code SnippetsNew to Visual Studio Code? Get it now.
TypeScript code Snippets

TypeScript code Snippets

zhangpan

|
13,083 installs
| (0) | Free
Code snippets for TypeScript and JavaScipt syntax
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft