Sublime Forum

PHP Prettier Format on Save

#1

Does anyone have a working setup for PHP where prettier does it’s stuff automatically on save?

For some reason (on Lubuntu) just saving a PHP file doesn’t trigger reformatting, but manually invoking prettier from the plugins menu works as expected.

Not much of a hassle but a bit odd - JS/TS/HTML/CSS all reformat on save as expected and I believe I have the correct node packages installed globally etc.

0 Likes

#2

according to stackoverflow users, you might need to install the prettier php plugin.

0 Likes

#3

Thanks, I thought I’d followed that lot but I’ll revisit and start again.

0 Likes