{ "typescript.tsdk": "./node_modules/typescript/lib", "volar.tsPlugin": true, "volar.tsPluginStatus": false, //=========================================== //============= Editor ====================== //=========================================== "explorer.openEditors.visible": 0, "editor.minimap.renderCharacters": false, "editor.minimap.maxColumn": 300, "editor.minimap.showSlider": "always", "editor.smoothScrolling": true, "editor.cursorBlinking": "phase", "editor.cursorSmoothCaretAnimation": "on", "editor.detectIndentation": false, "diffEditor.ignoreTrimWhitespace": false, "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "editor.formatOnPaste": true, "editor.suggestSelection": "first", "editor.trimAutoWhitespace": true, "editor.quickSuggestions": { "other": true, "comments": true, "strings": true }, //=========================================== //============= Other ======================= //=========================================== "breadcrumbs.enabled": true, "open-in-browser.default": "chrome", //=========================================== //============= emmet ======================= //=========================================== "emmet.triggerExpansionOnTab": true, "emmet.showAbbreviationSuggestions": true, "emmet.showExpandedAbbreviation": "always", "emmet.syntaxProfiles": { "vue-html": "html", "vue": "html", "javascript": "javascriptreact", "xml": { "attr_quotes": "single" } }, "emmet.includeLanguages": { "jsx-sublime-babel-tags": "javascriptreact" }, //=========================================== //============= files ======================= //=========================================== "files.trimTrailingWhitespace": false, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "search.exclude": { "**/node_modules": true, "**/*.log": true, "**/*.log*": true, "**/bower_components": true, "**/dist": true, "**/elehukouben": true, "**/.git": true, "**/.gitignore": true, "**/.svn": true, "**/.DS_Store": true, "**/.idea": true, "**/.vscode": false, "**/yarn.lock": true, "**/tmp": true, "out": true, "dist": true, "node_modules": true, "CHANGELOG.md": true, "examples": true, "res": true, "screenshots": true }, "files.exclude": { "**/bower_components": true, "**/.idea": true, "**/yarn.lock": true, "**/tmp": true, "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true }, "files.watcherExclude": { // 文件监视排除 "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/.vscode/**": true, "**/node_modules/**": true, "**/tmp/**": true, "**/bower_components/**": true, "**/dist/**": true, "**/yarn.lock": true }, "files.associations": { "*.vue": "vue", "*.wxss": "css" }, "stylelint.enable": true, "stylelint.packageManager": "yarn", "css.validate": true, "less.validate": true, "scss.validate": true, // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ // =========================================== // ================ Eslint =================== // =========================================== // "eslint.enable": true, "eslint.options": { // 配置 "plugins": [ "html", "vue", "javascript", "jsx", "typescript" ], "extensions": [ ".js", ".jsx", ".ts", ".tsx", ".vue" ] }, // "eslint.autoFixOnSave": true, // =========================================== // ================ Vetur ==================== // =========================================== "vetur.experimental.templateInterpolationService": true, "vetur.format.options.tabSize": 2, "vetur.format.defaultFormatter.html": "prettyhtml", "vetur.format.defaultFormatter.scss": "prettier", "vetur.format.defaultFormatter.css": "prettier", "vetur.format.defaultFormatter.ts": "prettier-tslint", "vetur.format.defaultFormatter.js": "prettier", "vetur.languageFeatures.codeActions": false, "vetur.format.defaultFormatterOptions": { "js-beautify-html": { // [auto|force|force-aligned|force-expand-multiline] "wrap_attributes": "force", "wrap_line_length": 100, }, // "prettier": { // "eslintIntegration": true, // "arrowParens": "always", // // 去掉末尾空格 // "semi": false, // "singleQuote": true, // "trailingComma": "none" // } }, "javascript.updateImportsOnFileMove.enabled": "never", "terminal.integrated.rendererType": "dom", "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false, "workbench.settings.enableNaturalLanguageSearch": false, "path-intellisense.mappings": { "@/": "${workspaceRoot}/src" }, "prettier.requireConfig": true, "typescript.updateImportsOnFileMove.enabled": "always", "workbench.sideBar.location": "left", "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[less]": { "editor.defaultFormatter": "vscode.css-language-features" }, "[scss]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "i18n-ally.localesPaths": [ "src/locales/lang" ], "i18n-ally.keystyle": "nested", "i18n-ally.sortKeys": true, "i18n-ally.namespace": true, "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}", "i18n-ally.enabledParsers": [ "ts" ], "i18n-ally.sourceLanguage": "zh", "i18n-ally.enabledFrameworks": [ "vue", "react" ], "better-comments.tags": [ { "tag": "todo", "color": "#FF8C00", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "bug", "color": "#FF2D00", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "warn", "color": "#3498DB", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "//", "color": "#474747", "strikethrough": true, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "*", "color": "#98C379", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "info", "color": "#35A0FF", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, { "tag": "ques", "color": "#FF5400", "strikethrough": false, "underline": false, "backgroundColor": "transparent", "bold": false, "italic": false }, ], "editor.defaultFormatter": "esbenp.prettier-vscode", "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "volar.format.initialIndent": { "html": true }, "editor.tabSize": 2, "vue.codeActions.enabled": true, "prettier.eslintIntegration": true, // "better-comments.highlightPlainText": true // 新增内容 "liveServer.settings.donotShowInfoMsg": true, "git.openRepositoryInParentFolders": "always", "editor.fontSize": 16, "eslint.alwaysShowStatus": true, "eslint.validate": [ "javascript", "javascriptreact", "typescriptreact", "html", "vue", "typescript" ], "files.eol": "\n", "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "vetur.completion.scaffoldSnippetSources": { "workspace": "💼", "user": "🗒️", "vetur": "✌" }, "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.format.defaultFormatter.less": "none", "vetur.format.defaultFormatter.ts": "vscode-typescript", "vetur.format.defaultFormatter.html": "prettyhtml", "vetur.format.defaultFormatterOptions": { // "js-beautify-html": { // "wrap_attributes": "force" // }, "prettyhtml": { "printWidth": 100, "singleQuote": false, "wrapAttributes": false, "sortAttributes": false } }, "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" }, "editor.wordWrap": "on", "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "files.autoSave": "afterDelay", "search.followSymlinks": false, "npm.autoDetect": "off", "npm.packageManager": "pnpm", "debug.javascript.codelens.npmScripts": "never", "npm.scriptHover": false, "editor.formatOnSave": true, "workbench.colorTheme": "Default Dark+", "editor.defaultFormatter": "esbenp.prettier-vscode" }