sublime text 快捷鍵新建.vue

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

第三步:打開Default.sublime-keymap,添加快捷鍵

添加模板以下:code

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

好啦,你如今能夠用啦~~~blog

相關文章
相關標籤/搜索