# 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
todo
- [ ] typescript
- [ ] nodejs
- [ ] angular
| |