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

How to add vue template to Sublime

藏色散人
Release: 2021-02-14 09:10:33
forward
3567 people have browsed it

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>
Copy after login

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

,{
        "caption": "Tmpl: Create vue", "command": "sublime_tmpl",
        "args": {"type": "vue"}
    }
Copy after login
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"}]
    }
Copy after login
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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template