第一步:添加模板:

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,添加快捷键

sublime text 快捷键新建.vue

添加模板如下:

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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2018-01-26
  • 2021-05-23
猜你喜欢
  • 2021-12-16
  • 2021-10-24
  • 2022-02-13
  • 2022-02-20
相关资源
相似解决方案