Prettier Run on save doesn't work

Hello, I'm usining prettier on WebStorm

And i checked Run on save and after i save the file it doesnt reformat / format anything.
Upload id: 2025_09_04_CqD2JygBr1Nv2J1zZ4wAc8 (file: image.png)

What did i do wrong?

Thanks for the advice!

1
4 comments

Does it work if you specify the path to prettier package explicitly? In the Prettier settings, change the configuration to Manual and then use the ellipsis button in the Prettier package: field to choose the appropriate package.
 

0

I had it fixed, but on PC reinstall it does not work again. I think the reason is the prettier doesnt work in src/ folder.

0

All folders are usually processed unless they are added to .prettierignore.

0

@hot games You may need to double check that Prettier is selected as the Default Formatter in WebStorm, as enabling “Run on Save” without the correct formatter configuration will not work.

0

Please sign in to leave a comment.