news 2026/4/15 11:45:42

ESLint,前端项目CTRL+S,自动保存格式化文档,超细

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
ESLint,前端项目CTRL+S,自动保存格式化文档,超细

把下方配置代码,全部粘贴进去即可

{ "diffEditor.ignoreTrimWhitespace": false, "javascript.updateImportsOnFileMove.enabled": "always", "workbench.editor.enablePreview": false, "workbench.startupEditor": "newUntitledFile", "emmet.includeLanguages": { "vue-html": "html", "vue": "html", "wxml": "html" }, "editor.fontWeight": 700, "editor.lineHeight": 20, "emmet.preferences": {}, "emmet.showSuggestionsAsSnippets": true, "eslint.codeAction.showDocumentation": { "enable": true }, "editor.codeActionsOnSave": {}, "eslint.validate": [ "javascript", "vue", "javascriptreact", "html", "typescript", "typescriptreact" ], "eslint.codeActionsOnSave.mode": "problems", "eslint.format.enable": true, "[html]": { "editor.defaultFormatter": "vscode.html-language-features" }, "[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[less]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[vue]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "javascript.validate.enable": false, "emmet.excludeLanguages": [ "markdown" ], "prettier.printWidth": 500, "prettier.tabWidth": 2, "prettier.useTabs": false, "prettier.proseWrap": "preserve", "prettier.bracketSpacing": true, "prettier.endOfLine": "auto", "prettier.htmlWhitespaceSensitivity": "ignore", "prettier.ignorePath": ".prettierignore", "prettier.jsxBracketSameLine": false, "prettier.jsxSingleQuote": true, "prettier.singleQuote": true, "prettier.requireConfig": false, "prettier.trailingComma": "none", "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "vetur.experimental.templateInterpolationService": false, "vetur.ignoreProjectWarning": true, "prettier.arrowParens": "avoid", "files.associations": { "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" }, "minapp-vscode.disableAutoConfig": true, "editor.fontSize": 14, "workbench.editor.enablePreviewFromCodeNavigation": true, "bracketPairColorizer.depreciation-notice": false, "prettier.useEditorConfig": false, "prettier.semi": false, "extensions.autoUpdate": false, "[scss]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "terminal.integrated.gpuAcceleration": "off", "explorer.compactFolders": false, "editor.detectIndentation": false, "git.confirmSync": false, "leek-fund.fundGroups": [ "我的基金" ], "leek-fund.funds": [ [ "012581", "006543", "001632", "420009", "320007", "003096", "001102", "003885", "001071", "005963" ] ], "search.followSymlinks": false, "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 }, "volar.inlayHints.eventArgumentInInlineHandlers": false, "editor.formatOnSave": true, "editor.formatOnType": true, "editor.tabSize": 2, "deepseek.lang": "cn", "git.autofetch": true, "git.ignoreRebaseWarning": true, "explorer.confirmDelete": false, "security.workspace.trust.untrustedFiles": "open", "workbench.editorAssociations": { "*.html": "default", "*.VSIXPackage": "default" }, "explorer.confirmDragAndDrop": false, "workbench.editor.empty.hint": "hidden", "workbench.colorTheme": "Deep Blue", "AI.toolcall.v2.command.allowList": "[\"mkdir\",\"node\",\"nvm\",\"Get-ChildItem\",\"Measure-Object\"]", "liveServer.settings.donotShowInfoMsg": true }

关闭编辑器重启即可

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/9 0:02:40

springboot+vue+Mysql的学生信息管理系统设计_xu1v7aa3

目录系统架构设计功能模块划分数据库设计技术实现细节系统特色与优化开发技术核心代码参考示例1.建立用户稀疏矩阵,用于用户相似度计算【相似度矩阵】2.计算目标用户与其他用户的相似度总结源码文档获取/同行可拿货,招校园代理 :文章底部获取博主联系方式…

作者头像 李华
网站建设 2026/4/14 22:39:47

创客匠人:数字人民币 + 智能体 ——IP 知识变现的资金合规与风险控制革命

引言:知识变现的隐形雷区 —— 资金合规正在淘汰粗放型 IP“分销佣金核算出错被税务稽查、返现激励遭遇虚假交易、资金挪用导致运营停摆”—— 这是 37% 创始人 IP 在知识变现中遭遇的真实困境。当数字人民币进入 “规则前置 支付即结算” 的新阶段,钱的…

作者头像 李华
网站建设 2026/4/14 10:00:35

一招搞定Excel表格列顺序混乱问题:智能列对齐神器详解

📊 一招搞定Excel表格列顺序混乱问题:智能列对齐神器详解 还在为不同Excel表格的列顺序不一致而烦恼吗?一个函数帮你实现智能列对齐,让数据整理变得如此简单! 一、为什么要做列对齐?一个生动比喻 想象一下…

作者头像 李华
网站建设 2026/4/10 6:16:19

高能分享:软件测试十大必问面试题(附带答案)

1 介绍之前负责的项目 参考答案:先大概描述一下这个项目是做什么的(主要功能),包括哪些模块,是什么架构的(B/S、C/S、移动端?),你在其中负责哪些模块的测试。期间经历了…

作者头像 李华
网站建设 2026/4/14 18:16:56

nginx解决跨域问题,包括options请求的跨域问题

C:\tools\nginx-1.28.0\conf\nginx.conf文件,报错:Access to fetch at http://localhost/api-aa2-agent12/classes/courses from origin http://localhost:3001 has been blocked by CORS policy: Response to preflight request doesnt pass access con…

作者头像 李华
网站建设 2026/4/14 12:31:10

基于springboot框架的服装商城销售系统_0895i6w5

目录 系统概述技术架构核心功能扩展性与安全 开发技术 核心代码参考示例1.建立用户稀疏矩阵,用于用户相似度计算【相似度矩阵】2.计算目标用户与其他用户的相似度总结源码文档获取/同行可拿货,招校园代理 :文章底部获取博主联系方式! 系统概述…

作者头像 李华