zoukankan      html  css  js  c++  java
  • Prettier格式化配置

    HTML/CSS/JS/LESS 文件的 prettier 格式化规则

    {
        "svn.enableProposedApi": "product",
        "window.zoomLevel": 0,
        "git.autofetch": true,
        "diffEditor.ignoreTrimWhitespace": true,
        "typescript.implementationsCodeLens.enabled": true,
        "javascript.suggest.enabled": false,
        "[vue]": {
            "editor.defaultFormatter": "octref.vetur"
        },
        "editor.accessibilityPageSize": null,
        "[jsonc]": {
            "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "[javascript]": {
            "editor.defaultFormatter": "esbenp.prettier-vscode"
          },
            "vetur.format.defaultFormatter.js": "vscode-typescript",
            "vetur.format.defaultFormatter.html": "js-beautify-html",
            // 保存自动修复true
            "eslint.autoFixOnSave": true,
            // jsx自动修复有问题,取消js的format
            "editor.formatOnSave": false,
            // Enable/disable default JavaScript formatter (For Prettier)
            "javascript.format.enable": false,
            "prettier.singleQuote": false,
            // 点击保存时,根据 eslint 规则自定修复,同时集成 prettier 到 eslint 中
            "prettier.eslintIntegration": true,
            "editor.codeActionsOnSave": {
                "source.fixAll.eslint": true
            },
            "[json]": {
                "editor.defaultFormatter": "esbenp.prettier-vscode"
            },
    }
  • 相关阅读:
    会议记录-5月20日
    会议记录-5月19日
    会议记录—5月18日
    会议记录-5月17日
    会议记录-5月16日
    会议记录-5月13日
    团队博客
    学习进度总结
    校外实习总结
    校外实习报告(二十)
  • 原文地址:https://www.cnblogs.com/hjbky/p/13857021.html
Copyright © 2011-2022 走看看