1. Use the shortcut Ctrl + Shift + P to call out the console 2, then enter "snippets" and select 2. Then enter vue, vs code automatically generates the vue.json file. 3. Change the vue.json file to the following template (you can modify the template content according to your personal needs) { "Print to console": { "prefix": "vue", "body": [ "<template>", " <div">$0</div>", "</template>", "", "<script>", "export default {", "components: {},", " props: {},", " data() {", " return {", " };", " },", "watch: {},", " computed: {},", " methods: {}, ", " created() {},", "mounted() {}", "};", "</script>", "<style lang=\"scss\" scoped>", "</style>" ], "description": "A vue file template" } } Then create a new vue file, enter "vue", press the Enter key or Tab key, and the template will be automatically generated: This is the end of this article about vsCode generating vue templates with one click. For more relevant vsCode generating vue templates, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Install Linux rhel7.3 operating system on virtual machine (specific steps)
>>: getdata table table data join mysql method
Table of contents 01 Introduction to Atomic DDL 0...
Effect: First create five vue interfaces 1.home.v...
Preface tcpdump is a well-known command-line pack...
When receiving this requirement, Baidu found many...
First download the dependencies yarn add sass-loa...
Table of contents Multiple uses of MySQL Load Dat...
This article example shares the specific code of ...
I have previously written an article about file t...
Virtualization 1. Environment Centos7.3 Disable s...
There are many differences between IE6 and IE7 in ...
Develop a number guessing game that randomly sele...
introduction In recent years, the call for TypeSc...
Make a blank space for Taobao: When you shrink th...
This article shares the installation tutorial of ...
As shown below: select name from mysql.proc where...