기사 디렉토리
1. 먼저 사용자 스 니펫을 찾습니다.
2. vue 선택
이것이 첫 번째입니다.
3. 다음 내용을
{
// 打印输出
"Print to console": {
// 前缀 也就是用户输入的快捷键内容
"prefix": "vue",
// 输出内容
"body": [
"<template>",
" <div>",
"$0",
" </div>",
"</template>",
"",
"<script>",
"export default {",
" name:'',",
" data() {",
" return {};",
" },",
"",
" created(){},",
" mounted(){},",
"",
" methods:{},",
"};",
"</script>",
"",
"<style scoped>",
"",
"</style>",
""
],
// 描述
"description": "Log output to console"
}
}
4. 사용
새 vue
파일, vue
노크 후 내부에 들어가면 자동으로 생성 가능