sublime text 快捷键新建.vue

第一步:添加模板:

  模板写法如下:

<template>
    
</template>

<script type="ecmascript-6">
    
</script>

<style rel="stylesheet">
    
</style>

第二步:打开 Default.sublime-commands,复制粘贴以下配置

,{
        "caption": "Tmpl: Create vue", "command": "sublime_tmpl",
        "args": {"type": "vue"}
    }

第三步:打开Default.sublime-keymap,添加快捷键

添加模板如下:

,{
        "keys": ["ctrl+alt+v"], "command": "sublime_tmpl",
        "args": {"type": "vue"}, "context": [{"key": "sublime_tmpl.vue"}]
    }

好啦,你现在可以用啦~~~

 

posted @ 2018-03-23 11:22  Beyrl.pan  阅读(923)  评论(0编辑  收藏  举报