Closed khoait closed 5 months ago
Have you tried changing your VS Code user settings with:
"[html]": {
"editor.defaultFormatter": "Shopify.theme-check-vscode",
}
Didn't try it myself though, just an idea.
I was able to do this by adding the following to my .prettierrc.json:
{
"plugins": ["@shopify/prettier-plugin-liquid"],
"overrides": [
{
"files": "*.html",
"options": {
"parser": "liquid-html"
}
}
]
}
Is your feature request related to a problem? Please describe.
I'm trying to use the plugin for
.html
containing liquid. and I get the errorIt would be nice if the plugin can support
.html
in addition to.liquid
files.Describe the solution you'd like
the plugin can format
.html
files in the same manner as.liquid
files.Describe alternatives you've considered N/A
Checklist
Additional context I'm using VS Code on Windows.