编辑vue时候的用户配置
{
"workbench.colorTheme": "Solarized Dark", // 主题
"editor.detectIndentation": false, // 防止覆盖掉设置的缩进
"editor.wordWrap": "on", // 自动折行
"editor.formatOnPaste": true, // 粘贴时自动格式化
"javascript.validate.enable": false, // 关闭默认的js验证,js中使用flow或ts语法会报错,需要关闭
"vetur.format.options.tabSize": 4,
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
},
{
"language": "javascriptreact",
"autoFix": true
}
],
}
有flow时工作区配置
{
"flow.pathToFlow": "${workspaceRoot}/node_modules/.bin/flow",
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false,
}
插件
1. Chinese (Simplified) Language Pack for Visual Studio Code 中文语言包
2. Vue.js Extension Pack vue的扩展包