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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNzAwMzQsIm5iZiI6MTcyMDA2OTczNCwicGF0aCI6Ii85NDI5NTU2LzI0Mjk5OTA3MC0zZmVmYTg4Ny04YWQ5LTQxMDEtYWY1My1hMzgwNmY5ZmExMTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDRUMDUwODU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGUyYWIxNGEyYTUwYTE5YzcxNjdjODNlODRhMjg1ZWZmZjdmNzViYWFjNTJjYWQ2OTg3NzRjNDc2NDkyZjI2MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.wKgG8doXX9aSo_ZTYCbvg8V9jcuS0VZlSMSKhqHy2VU)
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