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 Method 1 1. Configuration and i...
Table of contents Preface: accomplish: Summarize:...
Web Application Class 1. DownForEveryoneOrJustMe ...
Preface During the development process, you will ...
1. Use CSS to draw a small pointed-corner chat di...
This section starts with the details of text modi...
The Docker package is already included in the def...
Next, we will learn how to monitor server perform...
Preface Hello everyone, this is the CSS wizard - ...
The following code introduces MySQL to update som...
Horizontal Line Use the <hr /> tag to draw ...
Table of contents 1. Global level 2. Database lev...
JPQL stands for Java Persistence Query Language. ...
This article describes how to configure a seconda...
What is an inode? To understand inode, we must st...