Home  >  Article  >  Development Tools  >  How to add vue template to Sublime

How to add vue template to Sublime

藏色散人
藏色散人forward
2021-02-14 09:10:333468browse

The following tutorial column will introduce you to the method of adding vue templates in Sublime. I hope it will be helpful to friends who need it!

How to add vue template to Sublime

Sublime Add vue template

First step:

Create a new vue.tmpl file under the path: Sublime Text 3PackagesSublimeTmpltemplates:

##
<template>
    
</template>

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

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

Step 2: Open Default.sublime-commands and copy Paste the following configuration

,{
        "caption": "Tmpl: Create vue", "command": "sublime_tmpl",
        "args": {"type": "vue"}
    }
How to add vue template to SublimeStep 3: Add the shortcut key Default.sublime-keymap

,{
        "keys": ["ctrl+alt+e"], "command": "sublime_tmpl",
        "args": {"type": "vue"}, "context": [{"key": "sublime_tmpl.vue"}]
    }
Step 4: Use ctrl alt e to create a new vue template

The above is the detailed content of How to add vue template to Sublime. 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