While using vscode with svelte and prettier I ran into an issue where prettier would not format my svelte files.
The prettier icon at the bottom right would show a little circle with a line through it.
This happens when the .prettierrc and prettier-svelte-plugin are not installed in the root folder that vscode is opened in.
To fix this you need to install the prettier-svelte-plugin and create a .prettierrc file in the root folder of your project.
|
|
|
|
Or copy the prettier config from the svelte template subdirectory your working in