Vscode-intelephense: Offer choice of html formatter

Created on 20 Oct 2019  路  7Comments  路  Source: bmewburn/vscode-intelephense

Currently uses jsbeautify. A choice of html formatter could be offered eg prettier

enhancement

Most helpful comment

Hello again @bmewburn
Sorry to bother you, but maybe this ticket has been forgotten
So I would like to ask about any chance to introduce this function ??

All 7 comments

Great idea, I'm for it.
Especially since "JS-beautify" has stopped developing (the author clearly has no time for further progress?)

Hello again @bmewburn
Sorry to bother you, but maybe this ticket has been forgotten
So I would like to ask about any chance to introduce this function ??

I don't think prettier is any better at formatting mixed HTML/PHP than jsbeautify tbh.

I don't think prettier is any better at formatting mixed HTML/PHP than jsbeautify tbh.

Keep in mind that JSBeautify doesn't have good support. The Owner has no time to solve problems. This project has no future in the current situation:

obraz

And now look to the Prettier:

  • strong support
  • fast development
  • they have plans for future
  • they cooperate with VsCode team

According to the jsbeautify documentation there are two options "unformatted_content_delimiter" or "unformatted". I put .jsbeautifyrc in root of my current/open project but can't get anything to work.... VS Code can't format mixed HTML/PHP without messing it up

Please keep the issues clean. This is a ticket with a different problem from yours that you just described

Really looking forward to this feature 馃憤

Pardon my ignorance on the subject, but does VS Code provide any APIs for deferring formatting of a specific scope to another formatter registered in the editor? Such that Intelephense could defer formatting to the default formatter used for the HTML scope. Or does this feature require changes on the language server level?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghnp5 picture ghnp5  路  3Comments

aleksandervines picture aleksandervines  路  3Comments

Ilyes512 picture Ilyes512  路  3Comments

steven7mwesigwa picture steven7mwesigwa  路  4Comments

nn-hh picture nn-hh  路  3Comments