第一步:添加模板: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