公司新电脑里面新下载的vscode,配置起来真的很麻烦,记录一下下次直接复制粘贴
{
"files.associations": {
"*.vue": "vue"
},
"workbench.colorTheme": "Quiet Light",
"git.ignoreMissingGitWarning": true,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"merge-conflict.autoNavigateNextConflict.enabled": true,
"vetur.validation.template": false,
"editor.fontSize": 14,
"eslint.enable": true, //是否开启vscode的eslint
"eslint.autoFixOnSave": true, //是否在保存的时候自动fix eslint
"editor.formatOnSave": true, // #每次保存的时候自动格式化
"eslint.options": { //指定vscode的eslint所处理的文件的后缀
"extensions": [
".js",
".vue",
".ts",
".tsx"
]
},
"eslint.validate": [ //确定校验准则
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"workbench.sideBar.location": "left"
}
打开vscode用户设置(setting.json)直接复制粘贴进去保存重新打开