VScode个人基本配置

本文备份了使用VScode的基本配置

{
  "files.autoSave": "onFocusChange",
  "fileheader.customMade": { // 此为文件头部注释
    "Author": "**",
    "Date": "Do not edit",
    "lastEditors": "**",
    "LastEditTime": "Do not edit",
    "desc": "desc"
  },
  // 函数头部注释
  "fileheader.cursorMode": {
    "description": "",
    "param": "",
    "return": "",
    "author": ""
  },
  // 取消头部注释自动添加 ctrl+alt+i (windows下)
  "fileheader.configObj": {
    "autoAdd": false,
  },
  "editor.tabSize": 2, // 制表符符号eslint
  "editor.detectIndentation": false,
  "emmet.triggerExpansionOnTab": true,
  "editor.formatOnSave": true, // eslint保存自动格式化
  "eslint.autoFixOnSave": true, // 每次保存的时候将代码按eslint格式进行修复  
  "javascript.format.enable": false, // 不启动JavaScript格式化
  "workbench.colorTheme": "Atom One Dark",
  "workbench.startupEditor": "newUntitledFile",
  "explorer.confirmDelete": false,
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "auto"
    },
    "prettyhtml": {
      "printWidth": 120,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    },
    "prettier": {
      // 格式化不加分号
      "semi": false,
      // 格式化为单引号
      "singleQuote": true
    }
  },
  // 在方法括号之间插入空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "typescript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.js": "prettier-eslint",
  // "vetur.format.defaultFormatter.js": "vscode-typescript",
  // 用来配置作用的文件类型
  "eslint.validate": [ //开启文件中错误的检查
    "javascript",
    "javascriptreact",
    {
      "language": "html",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    },
    {
      "language": "javascriptreact",
      "autoFix": true
    }
  ],
  "eslint.alwaysShowStatus": true,
  "eslint.options": {
    "extensions": [
      ".js",
      ".vue"
    ]
  },
  "workbench.iconTheme": "vscode-icons",
  "editor.fontSize": 16,
  "beautify.config": {
    "brace_style": "collapse,preserve-inline" // 修改大括号换行问题
  },
  "prettier.semi": false,
  "vsicons.dontShowNewVersionMessage": true
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值