setting.json中的配置使用prettier

文章详细描述了在VSCode工作区的setting.json中关于Prettier插件的配置,涉及不同文件类型的默认格式化器以及是否开启保存时的自动代码格式化。
摘要由CSDN通过智能技术生成

setting.json中的配置使用prettier之一

{
  "workbench.colorTheme": "Dracula",
  "explorer.confirmDelete": false,
  "materialTheme.fixIconsRunning": false,
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "window.zoomLevel": 1,
  "git.ignoreMissingGitWarning": true,
  "vsicons.dontShowNewVersionMessage": true,
  "editor.fontSize": 15,
  "editor.tabSize": 2,
  "leetcode.endpoint": "leetcode-cn",
  "workbench.sideBar.location": "right",
  "editor.renderWhitespace": "all",
  "editor.fontFamily": "'Fira Code', Consolas, 'Courier New', monospace",
  "editor.fontLigatures": true,
  "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
  "liveServer.settings.donotShowInfoMsg": true,
  "update.enableWindowsBackgroundUpdates": false,
  "tabnine.experimentalAutoImports": true,
  "vetur.validation.template": false,
  "js/ts.implicitProjectConfig.experimentalDecorators": true,
  "cssrem.rootFontSize": 240,
  "cssrem.vw": true,
  "typescript.locale": "zh-CN",
  "editor.mouseWheelZoom": true,
  "Codegeex.Privacy": true,
  "Codegeex.Comment.LanguagePreference": "zh-CN",
  "terminal.integrated.defaultProfile.windows": "Command Prompt",
  "files.associations": {
    "*.art": "html"
  },
  "easysass.formats": [
    {
      "format": "expanded",
      "extension": ".css"
    },
    {
      "format": "compressed",
      "extension": ".min.css"
    }
  ],
  "editor.formatOnSave": true, // 是否开启保存自动代码格式化
  "[vue]": {
    // 声明.vue 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    // 声明.vue 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[less]": {
    // 声明.vue 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    // 声明.js 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    // 声明.js 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    // 声明.js 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    // 声明.js 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[scss]": {
    // 声明.js 文件采用 prettier-vscode 插件进行代码格式化
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "prettier.semi": true,
  "workbench.editor.empty.hint": "hidden",
  "RainbowBrackets.depreciation-notice": false
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值