", "
", "
", "", "", "
当前位置:   article > 正文

快速在vue3.0 中创建vue文件(快捷键)_vue3生成单组件的快捷键

vue3生成单组件的快捷键

 VScode》文件》首选项》用户片段》vue.json(Vue)

 vue.json配置:

  1. {
  2. "Print to console":{
  3. "prefix": "vuec",
  4. "body": [
  5. "<template>",
  6. " <div>",
  7. " </div>",
  8. "</template>",
  9. "",
  10. "<script>",
  11. "import { defineComponent } from 'vue'",
  12. "export default defineComponent ({",
  13. " name:'',",
  14. " components:{},",
  15. " props:{},",
  16. " setup(props, ctx){",
  17. " return {",
  18. " }",
  19. " },",
  20. "})",
  21. "</script>",
  22. "",
  23. "<style scoped>",
  24. "</style>"
  25. ],
  26. "description": "A vue file template"
  27. }
  28. }

配置完成之后,创建一个.vue文件,输入vuec 快速创建

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/231491
推荐阅读
相关标签
  

闽ICP备14008679号