How ca I get to run Prettier on HTML code?
Prettier seems to support HTML:
https://prettier.io/blog/2018/11/07/1.15.0.html
It would be awesome if this could be added to the "format with Prettier on save" function.
Please sign in to leave a comment.
Please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB
I've just checked that adding html to the list of patterns in Settings | Languages & Frameworks | JavaScript | Prettier is enough to make it work for HTML on Save All:
{**/*,*}.{js,ts,jsx,tsx,html}
Thank you. I was missing the global prettier package setting.