Home >Development Tools >sublime >Sublime adds vue template

Sublime adds vue template

藏色散人
藏色散人forward
2019-09-02 14:28:482729browse

Vue是一套构建用户界面的渐进式框架,下面由sublime使用教程栏目为大家介绍Sublime 添加vue模板的方法,非常简单,希望对需要的朋友有所帮助!

Sublime adds vue template

Sublime 添加vue模板

第一步:

在路径:Sublime Text 3PackagesSublimeTmpltemplates下新建vue.tmpl文件:

Sublime adds vue template

<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+e"], "command": "sublime_tmpl",
        "args": {"type": "vue"}, "context": [{"key": "sublime_tmpl.vue"}]
    }

第四步:使用ctrl+alt+e就可以建立新的vue模板了

Sublime adds vue template

The above is the detailed content of Sublime adds vue template. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete