第一步:添加模板:vue
模板寫法以下:ecmascript
<template> </template> <script type="ecmascript-6"> </script> <style rel="stylesheet"> </style>
第二步:打開 Default.sublime-commands,複製粘貼如下配置spa
,{
"caption": "Tmpl: Create vue", "command": "sublime_tmpl",
"args": {"type": "vue"}
}
添加模板以下:code
,{
"keys": ["ctrl+alt+v"], "command": "sublime_tmpl",
"args": {"type": "vue"}, "context": [{"key": "sublime_tmpl.vue"}]
}
好啦,你如今能夠用啦~~~blog