Reputation: 2795
I've installed globally prettier
and @prettier/plugin-php
packages, and added php
extention to Prettier preferences:
When I press Cmd+Opt+Shift+P
in a *.php
file editor, I've got this error:
"Prettier: File *.php has unsupported type"
How to configure my PhpStorm to use Prettier for *.php files in my Wordpress project?
Upvotes: 2
Views: 3971
Reputation: 432
You need to restart phpstorm in order to have prettier able to run for php after you installed the plugin
Upvotes: 2