{
"files.autoSave": "onFocusChange",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.detectIndentation": false,
"eslint._legacyModuleResolve": true,
"eslint.alwaysShowStatus": true,
//配置eslint
"eslint.autoFixOnSave": true,
"editor.fontSize": 14,
"editor.fontFamily": "Consolas",
//换行
"editor.wordWrap": "on",
"editor.renderWhitespace": "boundary",
"editor.tabSize": 2,
"editor.useTabStops": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
{
"language": "vue",
"autoFix": true
}
],
"eslint.options": {
"plugins": ["html"]
},
//关闭自动更新扩展
"extensions.autoUpdate": false,
"files.trimTrailingWhitespace": false,
"files.autoSaveDelay": 3000,
// gitlens配置
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": true,
"suppressCommitNotFoundWarning": true,
"suppressFileNotUnderSourceControlWarning": true,
"suppressGitVersionWarning": true,
"suppressLineUncommittedWarning": true,
"suppressNoRepositoryWarning": true,
"suppressResultsExplorerNotice": true,
"suppressShowKeyBindingsNotice": true
},
"git.confirmSync": false,
"html.format.indentInnerHtml": true,
"html.validate.scripts": true,
"typescript.validate.enable": true,
"javascript.validate.enable": true,
"javascript.format.enable": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"css.validate": false,
"less.validate": false,
"search.followSymlinks": false,
"scss.validate": true,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
//右键格式化文件
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.scss": "prettier",
"vetur.validation.template": true,
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
// #vue组件中html代码格式化样式
}
},
"vetur.format.defaultFormatter.stylus": "stylus-supremacy",
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "vscode-icons",
}
网友评论