zoukankan      html  css  js  c++  java
  • vue的settings.json格式化配置

    {
      "editor.renderWhitespace": "none",
      "vetur.validation.template": false,
      "breadcrumbs.filePath": "last",
      "workbench.startupEditor": "newUntitledFile",
      "liveServer.settings.CustomBrowser": "chrome",
      "liveServer.settings.donotVerifyTags": true,
      "liveServer.settings.donotShowInfoMsg": true,
      "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
      },
      "diffEditor.ignoreTrimWhitespace": false,
      "eslint.codeAction.showDocumentation": {
        "enable": true
      },
      // tab 大小为2个空格
      "editor.tabSize": 2,
      // 100 列后换行
      "editor.wordWrapColumn": 100,
      // 保存时格式化
      "editor.formatOnSave": true,
      // // 开启 vscode 文件路径导航
      // "breadcrumbs.enabled": true,
      // prettier 设置语句末尾不加分号
      "prettier.semi": false,
      // prettier 设置强制单引号
      "prettier.singleQuote": false,
      // 选择 vue 文件中 template 的格式化工具
      "vetur.format.defaultFormatter.html": "prettyhtml",
      // 显示 markdown 中英文切换时产生的特殊字符
      "editor.renderControlCharacters": true,
      "eslint.autoFixOnSave": true,
      // eslint 检测文件类型
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
          "language": "html",
          "autoFix": true
        },
        {
          "language": "vue",
          "autoFix": true
        }
      ],
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      // vetur 的自定义设置
      "vetur.format.defaultFormatterOptions": {
        "prettier": {
          "singleQuote": true,
          "semi": false
        }
      },
      // 修改500ms后自动保存
      "editor.formatOnSaveTimeout": 500,
      "files.autoSaveDelay": 500,
      "editor.codeActionsOnSaveTimeout": 500,
      "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
      },
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "javascript.updateImportsOnFileMove.enabled": "always"
    }
    

      

  • 相关阅读:
    目录结构
    RabbitMQ 将监听的IP从localhost修改为指定IP
    概念
    RabbitMQ 基础概念
    修改shell提示符的显示格式
    VIM常用设置
    RabbitMQ 开启WEB管理
    用pecl/pear独立编译PHP扩展 vs. 把扩展编译到PHP内核中
    安装composer
    安装php-amqplib(RabbitMQ的phpAPI)
  • 原文地址:https://www.cnblogs.com/sinceForever/p/15538562.html
Copyright © 2011-2022 走看看