Replies: 1 comment
-
Here's my config: {
// Formatting
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.insertSpaces": true,
"editor.tabSize": 4
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋
I've got a project with
prettier-plugin-svelte
installed to format.svelte
files. It works perfectly in the terminal.However, with prettier-vscode, cmd+p 'Format Document' produces
![image](https://private-user-images.githubusercontent.com/9429556/242999070-3fefa887-8ad9-4101-af53-a3806f9fa110.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTI2NDUsIm5iZiI6MTczOTU5MjM0NSwicGF0aCI6Ii85NDI5NTU2LzI0Mjk5OTA3MC0zZmVmYTg4Ny04YWQ5LTQxMDEtYWY1My1hMzgwNmY5ZmExMTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDQwNTQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTMyODRiOTI2ZjcwMjk1Njg0ZTAwZjMwNmE4NjQ2OWMxYTBlZjIzNjc3ZmU1MTFmNDVlODU4YzdmNzA3YzZhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.jMbTCl-O76rHhezBxUHTOlkPJZtoFvsUJqFA1z-LZlI)
The configure button on this modal prompts me to use the svelte vscode plugin, which doesn't format using Prettier.
Is there a way to configure prettier-vscode to tell vscode that it supports a particular file extension?
Thanks 😄
Beta Was this translation helpful? Give feedback.
All reactions