在vscode中新建用户代码片段
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
"<div>",
"",
"</div>",
"</template>",
"<script>",
"export default {",
"data() {",
" return {",
"",
" };",
"},",
"watch: { ",
" },",
"created() { ",
" },",
"methods: { ",
" },",
"};",
"</script>",
"<style lang='scss' scoped> ",
"",
"</style>",
],
"description": "Log output to console"
}
}
新建vue页面后,输入快捷键: vue , 回车就ok了
还没有评论,来说两句吧...