插件
- 自动提示路径插件
AutoFileName
- 代码美化
Beautify
、vetur
- vue代码片段自动提示
Vue2 Snippets
- es6代码提示
JavaScript(ES6) code snippets
- 代码规范检查器
Eslint
设置
- 新建文件输入vue回车自动创建vue模板
首选项--用户代码片段--vue.json
输入
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
" };",
" },",
"",
" components: {},",
"",
" computed: {},",
"",
" mounted() {},",
"",
" methods: {}",
"}",
"",
"</script>",
"<style lang='scss' scoped>",
"</style>"
],
"description": "Log output to console"
}
}
- 保存自动格式化代码
设置formatOnSave为true
具体链接
网友评论