vscode set Vue template

vscode set Vue template

Step 1
Insert picture description here
Step 2 Step
Insert picture description here
3 Copy the code

"Print to console": {
    
    
		"prefix": "vue",
		"body": [
			"<template>",
			"   <div id='app'></div>",
			"</template>",
			"",
			"<script>",
			" var app = new Vue({",
			"  el:'#app', ",
			"   data: {",
			"   },",
			// "   components: {},",
			// "   computed: {},",
			"   methods: {}",
			"})",
			"</script>",
		],
		"description": "Log output to console"
	}

The fourth step is to enter "vue" and enter or the Tab key.

Guess you like

Origin blog.csdn.net/weixin_49092628/article/details/111997588
Recommended