在 VS Code 中添加 Vue2 代码模板
2021年12月18日小于 1 分钟
在 VS Code 中添加 Vue2 代码模板
文件-->首选项-->用户代码片段-->输入 vue
"Vue2": {
"prefix": "vue2",
"body": [
"<template>",
"<div class='$2'>$5</div>",
"</template>",
"",
"<script>",
"",
"export default {",
"name: \"$1\",",
"components: {},",
"data() {",
"return {}",
"},",
"computed: {},",
"watch: {},",
"methods: {},",
"created() {},",
"mounted() {},",
"}",
"</script>",
"",
"<style lang=\"scss\" scoped>",
"$4",
"</style>"
],
"description": "Vue2 code template"
}