-
-
Notifications
You must be signed in to change notification settings - Fork 441
Change built-in HTML formatter from prettyhtml
to vscode-html-languageservice
#1078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Good @johnsoncodehk thanks) How will the performance improve? |
@reslear The text edit range of But since volar finally merges all text edits into one text edit of the entire vue text, it cannot take advantage of this, maybe it can be improved in the future. |
Huh, thought it was weird that all my stuff started formatting the wrong way! Novice here. Any guides on how to configure this new change? |
In past I have chosen
prettyhtml
for Volar after comparing some HTML formatters,prettyhtml
has always worked fine, but for some reasons I decided to replace the built-in HTML formatter withvscode-html-languageservice
in 0.34.0.vscode-html-languageservice
format result has been improved, much better than in the past in my experience.vscode-html-languageservice
is a built-in dependency of volar, so we don't to add other dependencies for this change.vscode-html-languageservice
volar can reuse vscode HTML format settings as much as possible.prettyhtml
depends onprettier
, andprettier
does not support on browser, so for Web IDE support I need to use solution other thanprettyhtml
.prettyhtml
will be migrated to an external plugin (#1027) and I will publish a package for it, for projects wishing to keep usingprettyhtml
, I will show how to do this. (Please keep an eye on the 0.34.0 changelog)The text was updated successfully, but these errors were encountered: