最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - Prettier not working for HTMLSCSS on save - Stack Overflow

programmeradmin2浏览0评论

I have latest Prettier installed, including Prettier VS Code extension. The .prettierrc.json looks like this:

{
  "tabWidth": 2,
  "useTabs": false,
  "semi": true,
  "bracketSpacing": true,
  "arrowParens": "avoid",
  "trailingComma": "es5",
  "printWidth": 120
}

and config is also correct:

It doesn't work for HTML/SCSS, but it does for TS/JS/JSON. I don't know where to look.

I also have it installed globally and running prettier . --write it works fine, but I need to run on save.

发布评论

评论列表(0)

  1. 暂无评论