vscode配置文件setting.json

本文详细介绍了如何在 VSCode 中进行高效配置,包括集成终端设置、文件自动保存、代码格式化、语言关联及 ESLint 集成等,旨在提升开发效率和代码质量。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

{
  // 更改默认的集成终端
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  // 删除时,是否确认
  "explorer.confirmDelete": false,
  // 失去焦点时,文件自动保存
  "files.autoSave": "onFocusChange",
  //控制折行方式
  "editor.wordWrap": "on",
  // 调整窗口的缩放级别
  "window.zoomLevel": 1,
  // 控制打开的编辑器是否显示在选项卡中
  "workbench.editor.showTabs": true,
  // 配置语言的文件关联(如: "*.extension": "html")。 这些关联的优先级高于已安装语言的默认关联。
  "files.associations": {
    "*.vue": "vue",
    "*.wpy": "vue",
    "*.wxml": "html",
    "*.wxss": "css",
    "*.js": "javascriptreact",
    "*.json": "jsonc"
  },
  "eslint.options": {
    // "plugins": ["html"],
    "extensions": [
      ".js",
      ".vue",
      ".ts",
      ".tsx"
    ]
  },
  //为了符合eslint的两个空格间隔原则
  "editor.tabSize": 2, // #每次保存的时候自动格式化
  // 自动修复
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  // 总是显示ESLint状态栏
  "eslint.alwaysShowStatus": true,
  // 启用/禁用 HTML 标记的自动关闭。
  "html.autoClosingTags": true,
  // 启用后,按下 TAB 键,将展开 Emmet 缩写。
  "emmet.triggerExpansionOnTab": true,
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  // 文件头 创作人
  "fileheader.Author": "wangliang",
  // 文件头 修改人
  "fileheader.LastModifiedBy": "wangliang",
  "better-comments.tags": [

    {
      "tag": "!",
      "color": "#FF2D00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "?",
      "color": "#3498DB",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "//",
      "color": "#474747",
      "strikethrough": true,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "todo",
      "color": "#FF8C00",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    },
    {
      "tag": "*",
      "color": "#98C379",
      "strikethrough": false,
      "underline": false,
      "backgroundColor": "transparent",
      "bold": false,
      "italic": false
    }
  ],
  "postcssSorting.config": {
    "order": [
      "custom-properties",
      "dollar-variables",
      "declarations",
      "at-rules",
      "rules"
    ],
    "properties-order": ["display", "position", "top", "right", "bottom", "left"]
  },
  "sync.gist": "35f8f1fb55b657c5777f1af6d1e2564f",
  "sync.autoDownload": false,
  "sync.autoUpload": false,
  "workbench.iconTheme": "vscode-icons",
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值