-
Notifications
You must be signed in to change notification settings - Fork 97
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
vscode prettier doesn't seem to use the plugin, even when .prettierrc configured #401
Comments
Use NOTE: Use string values for
|
I tried this, and it works for a little while, but then the plugin stops working, and I have to change the name back to get it to work again, until it stops working and I have to change it back ... ad infinitum. |
Yea, the plugin randomly stops working for me. Changing path to something invalid back to .prettierrc seems to be a temporary solution. |
It seems that the issue may be due to problems with prettier-vscode. |
Here's what has worked for me:
plugins:
- prettier-plugin-svelte
overrides:
- files: "*.svelte"
options:
parser: "svelte" Ad I installed prettier and prettier-plugin-svelte in project root. Further observations to hopefully help find the issueIn particular This considered the only fix svelte team can apply I suppose is adding support for specifying prettier config path. |
Per the instructions I've created a config file:
And when I save the file and format with the Prettier extension:
It uses the config file:
But no changes occur to my svelte files.
Command line works fine:
(I can see the files are now neatened)
The text was updated successfully, but these errors were encountered: