RiFi2k / format-html-in-php

Basically this vscode extension uses all your standard configurations for html formatting, and your standard configurations for format on save, etc. It more or less works exactly how vscode should already work as it pertains to HTML in PHP files.
The Unlicense
33 stars 6 forks source link

Set up on save as default formatter #40

Closed ronilaukkarinen closed 4 years ago

ronilaukkarinen commented 4 years ago

Hello! I'm getting "There is no formatter for 'php' files installed." even though I have this installed. So no formatting on saving php files. Also, how to add keybinding for the formatter?

RiFi2k commented 4 years ago

Actually this extension is not a formatting extension, you will want to use it in addition to a PHP formatting extension. All this one does is run formatting on the HTML but not during the formatting hook. Both Q's should be explained here

ronilaukkarinen commented 4 years ago

Ok, thanks. I already found a plugin for this purpose, Formatters Hero, if someone is curious.