vscode setting.json文件配置
程序员文章站
2022-06-26 12:04:24
...
{
"search.followSymlinks": false,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"explorer.confirmDelete": false,
"editor.cursorBlinking": "smooth",
"editor.fontFamily": "Consolas,Monospace",
"editor.wordWrap": "on",
"editor.cursorStyle": "line", //光标为细竖线
"editor.tabSize": 2, //缩进2个空格
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": false, //去掉末尾分号
"singleQuote": true //将所有双引号改为单引号
}
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, //在方括号之间插入空格
"vetur.format.defaultFormatter.js": "vscode-typescript",
//iview组件eslint报告Col闭合标签问题
"vetur.validation.template": false,
//配置下vscode支持vue语言
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
{
"language": "vue",
"autoFix": true
}
]
}