-
Notifications
You must be signed in to change notification settings - Fork 97
cannot use prettier-plugin-svelte with prettier-plugin-tailwindcss from vscode #370
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
just did a couple more test, and I think I found the issue I needed to add I'll do a couple more tests anyway my current {
"files.autoSave": "onFocusChange",
"files.associations": { "*.svelte": "html" },
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.configPath": ".prettierrc",
"[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true
} |
The So I had to add this instead The reason for this option is explained here Since we are we are overriding svelte files from the Also found this comment with the same solution perhaps we could add a mention in the docs about this setting, it was particular hard to find edit: just submitted this PR |
…lwindcss with VS code see sveltejs#370
I configure my project following these instructions
But vscode cannot use
esbenp.prettier-vscode
to format Svelte files, I get the following error:from the command line
pnpm format
works as expectedSteps to reproduce:
.prettierrc file
.vscode/settings.json
fileinstalled extensions
package.json
The text was updated successfully, but these errors were encountered: