路径:文件>>首选项>>用户代码片段>>输入vue
"Print to console": { "prefix": "vue", "body": [ "<style scoped lang="scss">", "</style>", "", "<template>", " <div> Hello World$0 </div>", "</template>", "", "<script>", "//import x from ''", "export default {", " name: 'Unnamed',", " props: {},", " data () {", " return {", " }", " },", " components: {},", " computed: {},", " watch: {},", " methods: {},", " beforeMount () { },", " mounted () { },", " activated () { }", "}", "</script>", "" ], "description": "vue output to vue-template" }
参考:https://blog.csdn.net/jbj6568839z/article/details/97759575