{
// git程序配置
"git.path": "C:/Program Files/Git/bin/git.exe",
"terminal.integrated.shell.windows": "C:/Program Files/Git/bin/bash.exe",
"open-in-browser.default": "Chrome",
"liveServer.settings.ChromeDebuggingAttachment": false,
"liveServer.settings.CustomBrowser": "chrome",
// tab 大小为2个空格
"editor.tabSize": 2,
// 编辑器换行
"editor.wordWrap": "off",
// 保存时自动修复格式问题
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// prettier 设置语句末尾是否使用分号
"prettier.semi": true,
// prettier 设置是否强制使用单引号
"prettier.singleQuote": true,
// 选择 vue 文件中 template 的格式化工具
"vetur.format.defaultFormatter.html": "js-beautify-html",
// 设置方法名称后存在空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.defaultFormatter.js": "vscode-typescript",
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "aligned-multiple"
},
"prettier": {
"singleQuote": true, //是否使用单引号
"semi": true, //是否存在分号
"printWidth": 10,
"wrapAttributes": false,
"sortAttributes": false
}
},
"eslint.options": {
"extensions": [
".js",
".vue"
]
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.fontLigatures": null,
"liveServer.settings.donotShowInfoMsg": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"diffEditor.ignoreTrimWhitespace": false,
"explorer.confirmDelete": false,
"workbench.colorTheme": "Default Dark+",
"editor.wordWrapColumn": 200,
"files.autoSave": "afterDelay",
"timeline.excludeSources": [],
"editor.accessibilitySupport": "off",
"eslint.runtime": "",
"doxdocgen.generic.customTags": []
}