{ "editor.formatOnSave": true, // jsx代码补全 "emmet.includeLanguages": { "javascript": "javascriptreact", "wxml": "html" }, "[javascript]": { "editor.defaultFormatter": "vscode.typescript-language-features" }, "[html]": { "editor.defaultFormatter": "HookyQR.beautify" }, "files.trimTrailingWhitespace": true, // vscode卡死 不显示在工作区 "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/tmp": true, "**/node_modules": true, "**/bower_components": true, "**/dist": true }, "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/**": true, "**/tmp/**": true, "**/bower_components/**": true, "**/dist/**": true }, // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, "editor.cursorStyle": "line", //光标为细竖线 //配置eslint // 重新设定tabsize "editor.tabSize": 2, "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //在方括号之间插入空格 "vetur.format.defaultFormatterOptions": { "prettier": { "semi": false, //去掉末尾分号 "singleQuote": true //将所有双引号改为单引号 }, "js-beautify-html": { "wrap_attributes": "force-aligned" // #vue组件中html代码格式化样式 } }, "files.associations": { "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.renderIndentGuides": false, "prettier.semi": false, "prettier.singleQuote": true, "editor.quickSuggestions": { "strings": true }, "minapp-vscode.disableAutoConfig": true, "editor.formatOnPaste": true, "editor.formatOnType": true }