vscode 自用最舒服的设置

{
  // 配置终端有在运行时关闭软件提醒
  "terminal.integrated.confirmOnExit": true,
  "editor.fontSize": 16, //字体
  "editor.tabSize": 2, // 间隔
  // 新建为html
  "files.defaultLanguage": "html",
  // 右侧预览关闭
  "editor.minimap.enabled": false,
  "editor.quickSuggestions": {
    "strings": true
  },
  "workbench.iconTheme": "material-icon-theme", // 图标美化
  // 选项卡颜色主题
  "workbench.colorCustomizations": {
    "tab.activeBorder": "#5996ff"
  },
  // eslint配置项,保存时自动修复错误
  "editor.codeActionsOnSave": {
    "source.fixAll": "explicit"
  },
  // html 标签不换行
  "typescript.validate.enable": false,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "auto",
      "end_with_newline": false
    }
  },
  // 让vetur使用vs自带的js格式化工具,以便在函数前面加个空格
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  // 默认使用prettier格式化支持的文件
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  // 指定 *.vue 文件的格式化工具为vetur
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  // 配置工具默认
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  // 配置为Prettier插件
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "files.associations": {
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript"
  },
  "emmet.includeLanguages": {
    "wxml": "html"
  },
  "minapp-vscode.disableAutoConfig": true,
  "git.ignoreMissingGitWarning": true,
  "explorer.confirmDelete": false,
  // Path Autocomplete 配置 @ 路径
  "path-autocomplete.extensionOnImport": true,
  "path-autocomplete.includeExtension": true,
  "path-autocomplete.enableFolderTrailingSlash": true,
  "path-autocomplete.pathMappings": {
    "@": "${folder}/src"
  },
  "git.ignoreLegacyWarning": true,
  "liveServer.settings.donotShowInfoMsg": true,
  "html.autoClosingTags": false,
  // 新创文件不自动添加注释
  "fileheader.configObj": {
    "autoAdd": false,
    "createHeader": false
  },
  //此为头部注释
  "fileheader.customMade": {
    "Description": "",
    "Version": "1.0",
    "Date": "Do not edit",
    "FilePath": "no item name",
  },
  //此为函数注释
  "fileheader.cursorMode": {
    "description": "",
    "param": "",
    "return": ""
  },
  "sass.andStared": [
    "active",
    "focus",
    "hover",
    "nth-child"
  ],
  "window.zoomLevel": 0,
  "editor.wordWrap": "on",
  "alias-skip.allowedsuffix": [
    "js",
    "vue",
    "jsx",
    "ts"
  ],
  "alias-skip.mappings": {
    "@": "/src"
  },
  "workbench.colorTheme": "One Dark Pro Darker",
  "editor.formatOnSave": true,
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小朱同学️

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值