• vscode配置笔记


    {
      "editor.formatOnSave": true,
      // jsx代码补全
      "emmet.includeLanguages": {
        "javascript": "javascriptreact",
        "wxml": "html"
      },
      "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
      },
      "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
      },
      "files.trimTrailingWhitespace": true,
      // vscode卡死  不显示在工作区
      "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
      },
      // vscode默认启用了根据文件类型自动设置tabsize的选项
      "editor.detectIndentation": false,
      "editor.cursorStyle": "line", //光标为细竖线
      //配置eslint
      // 重新设定tabsize
      "editor.tabSize": 2,
      "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //在方括号之间插入空格
      "vetur.format.defaultFormatterOptions": {
        "prettier": {
          "semi": false, //去掉末尾分号
          "singleQuote": true //将所有双引号改为单引号
        },
        "js-beautify-html": {
          "wrap_attributes": "force-aligned"
          // #vue组件中html代码格式化样式
        }
      },
      "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
      },
    
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      "editor.renderIndentGuides": false,
      "prettier.semi": false,
      "prettier.singleQuote": true,
      "editor.quickSuggestions": {
        "strings": true
      },
      "minapp-vscode.disableAutoConfig": true,
      "editor.formatOnPaste": true,
      "editor.formatOnType": true
    }
  • 相关阅读:
    Firefox for macOS 标签关闭按钮设置在左侧
    Nginx 非编译安装 stream 模块实现四层负载均衡
    苹果手机卡死,强制关机方法
    Git安装完成,文件夹下右键菜单不出现出现Git Bash Here 和Git UI Here问题
    AESUtil
    若依框架清空select2选择
    RSAUtils
    springboot 延时任务
    Mqtt的坑,真的坑
    springboot 支付宝支付业务网页端扫码
  • 原文地址:https://www.cnblogs.com/chen-cheng/p/13262146.html
Copyright © 2020-2023  润新知