Skip to content

FR: Add a setting to switch prettyhtml to Prettier 2.x for <template> #672

Closed
@mesqueeb

Description

@mesqueeb

Feature Request:

  • Add a setting to switch prettyhtml to Prettier 2.x for <template>

original issue below:


prettyhtml is pretty much unmaintained and they have a notice on their README like so:
image

I think it would be better if Volar uses Prettier for the template section of a Vue file by default.

Is there a specific reason Volar chose prettyhtml over Prettier as the default HTML formatter?


Currently the only workaround is to set Prettier to completely format Vue files.

But that's not really an option because then we loose the proper sass-formating for the style lang=sass section of a Vue file. (sass formatting is something that Prettier can't do natively)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions