{
// 配置终端有在运行时关闭软件提醒
"terminal.integrated.confirmOnExit": true,
"editor.fontSize": 16, //字体
"editor.tabSize": 2, // 间隔
// 新建为html
"files.defaultLanguage": "html",
// 右侧预览关闭
"editor.minimap.enabled": false,
"editor.quickSuggestions": {
"strings": true
},
"workbench.iconTheme": "material-icon-theme", // 图标美化
// 选项卡颜色主题
"workbench.colorCustomizations": {
"tab.activeBorder": "#5996ff"
},
// eslint配置项,保存时自动修复错误
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
// html 标签不换行
"typescript.validate.enable": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto",
"end_with_newline": false
}
},
// 让vetur使用vs自带的js格式化工具,以便在函数前面加个空格
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// 默认使用prettier格式化支持的文件
"editor.defaultFormatter": "esbenp.prettier-vscode",
// 指定 *.vue 文件的格式化工具为vetur
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// 配置工具默认
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
// 配置为Prettier插件
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"git.ignoreMissingGitWarning": true,
"explorer.confirmDelete": false,
// Path Autocomplete 配置 @ 路径
"path-autocomplete.extensionOnImport": true,
"path-autocomplete.includeExtension": true,
"path-autocomplete.enableFolderTrailingSlash": true,
"path-autocomplete.pathMappings": {
"@": "${folder}/src"
},
"git.ignoreLegacyWarning": true,
"liveServer.settings.donotShowInfoMsg": true,
"html.autoClosingTags": false,
// 新创文件不自动添加注释
"fileheader.configObj": {
"autoAdd": false,
"createHeader": false
},
//此为头部注释
"fileheader.customMade": {
"Description": "",
"Version": "1.0",
"Date": "Do not edit",
"FilePath": "no item name",
},
//此为函数注释
"fileheader.cursorMode": {
"description": "",
"param": "",
"return": ""
},
"sass.andStared": [
"active",
"focus",
"hover",
"nth-child"
],
"window.zoomLevel": 0,
"editor.wordWrap": "on",
"alias-skip.allowedsuffix": [
"js",
"vue",
"jsx",
"ts"
],
"alias-skip.mappings": {
"@": "/src"
},
"workbench.colorTheme": "One Dark Pro Darker",
"editor.formatOnSave": true,
}
09-01
9771
11-02
602