zoukankan      html  css  js  c++  java
  • vscode 写js项目,自动按照eslint保存

    {
        "editor.suggestSelection": "first",
        "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
        "python.jediEnabled": false,
        "files.exclude": {
            "**/.classpath": true,
            "**/.project": true,
            "**/.settings": true,
            "**/.factorypath": true
        },
        "[json]": {
            "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "javascript.updateImportsOnFileMove.enabled": "always",
        "explorer.confirmDelete": false,
        "diffEditor.ignoreTrimWhitespace": false,
        "javascript.implicitProjectConfig.experimentalDecorators": true,
        "[javascript]": {
            "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "terminal.integrated.shell.osx": "/bin/zsh",
        "editor.fontLigatures": true,
        "editor.fontFamily": "Fira Code",
        "terminal.integrated.fontFamily": "monospace",
        "go.formatTool": "goimports",
        "remote.SSH.connectTimeout": 60,
        "typescript.updateImportsOnFileMove.enabled": "always",
        "C_Cpp.updateChannel": "Insiders",
        "http.proxySupport": "off",
        "[rust]": {
            "editor.defaultFormatter": "statiolake.vscode-rustfmt"
        },
        "debug.allowBreakpointsEverywhere": true,
        "debug.onTaskErrors": "showErrors",
        "[typescript]": {
            "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "java.requirements.JDK11Warning": false,
        "java.semanticHighlighting.enabled": true,
        "eslint.alwaysShowStatus": true,
        "eslint.format.enable": true,
        "files.autoSave": "off",
        "eslint.validate": [
            "javascript",
            "javascriptreact",
            "vue-html",
        ],
        "eslint.run": "onSave",
        "python.languageServer": "Microsoft",
        "editor.detectIndentation": false,
        "editor.tabSize": 2,
        "editor.codeActionsOnSave": {
          "source.fixAll.eslint": true
        },
    }

    生效的核心:"source.fixAll.eslint": true

  • 相关阅读:
    贴板子系列_1-km算法,匈牙利算法
    bzoj 2333
    bzoj 3531 旅行
    斯坦纳树
    可持久化线段树
    下界最小费用最大流
    我们还是太NAive
    ubuntu出现有线已连接却无法上网
    python小爬虫【1】
    [解答]对‘’未定义的引用 collect2: 错误: ld 返回 1
  • 原文地址:https://www.cnblogs.com/dzqdzq/p/13366153.html
Copyright © 2011-2022 走看看