1.左下角打开设置
2.新建全局代码片段
3.输入名字,名字随意不过最好语意化
4.创建模版
这里的模版为vue2常用代码片段,稍后会持续更新。
{"Print to console": {"prefix": "v2", //页面使用时名称"body": ["<template>"," <div>",""," </div>","</template>","","<script>","export default {"," name:'',"" data() {"," return {",""," }"," },"," mounted() {",""," },"," methods: {",""," },","}","</script>","<style lang='scss' scoped>","","</style>"],"description": "Log output to console"}
}