在vscode中新建用户代码片段

本是古典 何须时尚 2023-01-07 09:00 278阅读 0赞
  1. {
  2. "Print to console": {
  3. "prefix": "vue",
  4. "body": [
  5. "<template>",
  6. "<div>",
  7. "",
  8. "</div>",
  9. "</template>",
  10. "<script>",
  11. "export default {",
  12. "data() {",
  13. " return {",
  14. "",
  15. " };",
  16. "},",
  17. "watch: { ",
  18. " },",
  19. "created() { ",
  20. " },",
  21. "methods: { ",
  22. " },",
  23. "};",
  24. "</script>",
  25. "<style lang='scss' scoped> ",
  26. "",
  27. "</style>",
  28. ],
  29. "description": "Log output to console"
  30. }
  31. }

新建vue页面后,输入快捷键: vue , 回车就ok了

发表评论

表情:
评论列表 (有 0 条评论,278人围观)

还没有评论,来说两句吧...

相关阅读