Custom vue template (name is the file name by default)

Find the user code snippet in the settings in the lower left corner

Insert picture description here

Then find this file

Insert picture description here

Replace with the following template

{
    
    
	"Print to console": {
    
    
        "prefix": "vue",
        "body": [
			"<template>",
			"    <div>",
			"",
			"    </div>",
			"</template>",
			"",
			"<script>",
			"    export default {",
			"      name: '$TM_FILENAME_BASE',",              
			"",
			"    }",
			"</script>",
			"",
			"<style scoped>",
			"",
			"</style>"
        ],
        "description": "Log output to console"
    }
}

Insert picture description here
over!!!

Guess you like

Origin blog.csdn.net/weixin_45773503/article/details/113748647