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
Docker has been very popular in the past two year...
Preface MySQL supports many types of tables (i.e....
Table of contents Implementation ideas There are ...
I just saw a post titled "Flow Theory and Des...
A few days ago, a colleague asked me a question a...
Table of contents background analyze method backg...
Standardized design solutions - markup languages ...
Table of contents 1. Pull the Redis image 2. Crea...
The network configuration of Host Only+NAT mode u...
Table of contents What is Flattening recursion to...
An at-rule is a declaration that provides instruc...
Introduction to AOP The main function of AOP (Asp...
People who often use MySQL may encounter the foll...
What is a file? All files are actually a string o...
How to install MySQL 5.7.18 on Linux 1. Download ...