一、如何设置?
- 打开用户片段
- 选择或创建
vue.json
代码片段 -
粘贴下面代码片段即可
{ "Print to console": { "prefix": "vue", "body": [ "<template>", " <div>\n", " </div>", "</template>\n", "<script>", "export default {", " props: {\n", " },", " data() {", " return {\n", " };", " },", " computed: {\n", " },", " created() {\n", " },", " mounted() {\n", " },", " watch: {\n", " },", " methods: {\n", " },", " components: {\n", " },", "};", "</script>\n", "<style scoped lang=\"${1:scss}\">\n", "</style>\n", ], "description": "Create vue template" } }
二、如何使用?
新建*.vue
文件,输入vue
,按tab
即可
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。