zoukankan      html  css  js  c++  java
  • vscode 最简单实用的setting.json默认配置项

    vscode 最简单实用的默认配置项

    eslint、prettier、vetur

    setting.json文件

    {
        "workbench.iconTheme": "vscode-icons",
        "files.autoSave": "afterDelay",
        "liveServer.settings.CustomBrowser": "chrome",
        "editor.formatOnSave": true,
        "html.format.indentInnerHtml": true,
        "html.format.indentHandlebars": true,
        "eslint.format.enable": true,
        "prettier.requirePragma": true,
        "[vue]": {
            "editor.defaultFormatter": "octref.vetur"
        },
        //分号
        "prettier.semi": false,
        //单引号包裹字符串
        "prettier.singleQuote": true,
        //html格式化依赖  默认为none
        "vetur.format.defaultFormatter.html": "js-beautify-html",
        //函数前加空格
        // "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
        //没有下边这个 上边不生效
        "vetur.format.defaultFormatter.js": "vscode-typescript",
    }

    自动保存后自动格式化eslint代码格式校验

  • 相关阅读:
    whereis which type find
    souce and bash 的区别
    systemctl daemon-reload
    linux /etc/profile bashrc bash_profile
    ulimt 和 sysctl
    MySQL 问题总结
    asyncio
    Linux 中 MySQL 操作
    总结一波 Redis 面试题
    os 模块 和 re 模块
  • 原文地址:https://www.cnblogs.com/tt-ff/p/12123368.html
Copyright © 2011-2022 走看看