Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>vscode-snippetsNew to Visual Studio Code? Get it now.
vscode-snippets

vscode-snippets

shaojian

|
288 installs
| (0) | Free
my backup
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

# vscode-snippets

Useage

javascript

  • clg => console.log
  • imtf => import xx from xx
  • imt => import a.css
  • imtsf => imtsf
  • exd => export default
  • jqajax => $.ajax....
  • dfunc => function (){}
  • darrow => const name = ()=>{}
  • dconst => const name = value
  • dvar => var name = value
  • dlet => let name = value
  • dpromise => promise.then(d=>{}).catch(e=>{})
  • dinterval => setInterval(xxxx)
  • dtime => setTimeout(xxx)
  • dtry => try catch

vue-script

  • vasync => async name(){}
  • vfunc => name(){}
  • vbase => export default {..}
  • vdata => data() { return {} }
  • vcreate => created(){...}
  • vprops => props: {...}
  • vimport => import ${1:New} from '@/components/${1:New}.vue';
  • vcomponents => components:{}

typescript

  • vtsinit => vue的ts组件的初始化

todo

  • [ ] typescript
  • [ ] nodejs
  • [ ] angular
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft