zoukankan      html  css  js  c++  java
  • 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
    }
  • 相关阅读:
    TensorFlow学习('utf-8' codec can't decode byte 0xff in position 0: invalid start byte)
    Python常用库之三:Matplotlib
    线性回归 Python实现
    go 算法 查询字符在字符串中的位置
    Python与Go快速排序
    Python与Go斐波那契数列
    Python与Go选择排序
    Python与Go插入排序
    Python与Go冒泡排序
    git clone直接提交用户名和密码
  • 原文地址:https://www.cnblogs.com/chen-cheng/p/13262146.html
Copyright © 2011-2022 走看看