当前位置: 首页 > news >正文

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 }

关闭编辑器重启即可

http://www.jsqmd.com/news/211261/

相关文章:

  • 一招搞定Excel表格列顺序混乱问题:智能列对齐神器详解
  • UltraISO注册码最新版已过时?不如试试Hunyuan-MT-7B转换系统说明文档语言
  • 学霸同款2026 AI论文写作软件TOP9:本科生毕业论文必备测评
  • 基于PLC3x3的升降横移立体车库控制系统设计及电气梯形图程序、接线图和组态画面解析
  • 基于Spring boot食品安全信息管理系统
  • 2.34 二手车价格预测完整案例:特征工程、模型训练、调参全流程
  • 基于springboot框架的自行车个性化改装推荐系统_fzl3r7qs
  • JLink烧录中Bootloader与驱动协同机制详解
  • AIGC率怎么降?盘点8款真正好用的免费降ai率工具与付费神器
  • 【保姆级教程】Coze工作流+Banana2批量复刻小红书爆款手绘财经知识风格图(附免费工作流)
  • AI开发新趋势:不用再纠结全文检索VS语义搜索,LangChain+Milvus全都要!附完整代码实现,小白也能秒变大神!
  • 小白程序员福音!RTX 4090也能跑的32B大模型,手把手教你搭建RAG系统,告别AI幻觉!
  • 基于springboot框架的高校志愿服务管理系统_68e63n7s
  • 学长亲荐8个AI论文写作软件,助你轻松搞定本科论文!
  • 软件测试工程师面试题(含答案)
  • 【AI炸场】Qwen3 Embedding+Reranker开源模型大杀器!一文教你实现跨语言智能搜索,代码全公开!
  • 基于springboot框架的鲜花售卖商城系统_9380p19j
  • 手把手教你用EKF玩转PMSM无感控制
  • 2.40 沪市指数走势预测案例:时间序列分析在金融领域的实战应用
  • 【免费学习】基于FastAPI+Vue3的蛋糕零售店
  • 微信小程序 springboot+uniapp二手图书商城销售系统 回忆小书屋_207086yx
  • 不用 Cursor 也能搞?Milvus-MCP 惊艳登场,极简构建本地知识库,太香了!
  • jQuery Nice Validator 新手教程
  • 怎么成为一个 ai agent 工程师?
  • 收藏!小白程序员必看:大语言模型核心原理全解析(从ChatGPT到Transformer)
  • 我的超详细大模型学习路线!
  • PCB的叠层结构和材质详解
  • 【爆肝整理】OpenAI官方发布!2026 Agent元年,手把手教你从零搭建LLM智能体,小白也能秒变AI大神!
  • 飞算 JavaAI “执行 SQL 语句” 功能:在 IDEA 里轻松查数据结果
  • 无人机抗干扰技术解析与应用