Format with prettier on save...

How do I get Webstorm to format with prettier on save? There's the manual "reformat with prettier" command that works like a charm, but how do I trigger it on save?

5 points · 1 comments · view on lemmy.world

1 Comments

elmerdahl@lemm.ee · 1 pts · 1y

In the settings it says "Prettier package not specified. But I'm using the "Automatic prettier configuration" option and it works perfectly when triggered manually through the contextual menu (right clicking).