-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 privileges .editorconfig over settings.json for single quotes #4512
Labels
Comments
Thanks for the report
Where should one set this? In Have you tried to create a Prettier config file? |
Hi Bruno,
Although it is a “proposed property”, it works ok in VSCode (tried it with 1.81.1). I haven’t tried setting a Prettier config file, but others in online forums have reported that alternative to be ignored when an .editorconfig files exists. If you delete the .editorconfig files, then the VSCode setting is considered though.
Regards,
Alan
…On 14 Aug 2023 9:25 -0300, Bruno Alla ***@***.***>, wrote:
Thanks for the report
> The only way to make VSCode apply single quotes when applying Prettier is to add quote_type = single
Where should one set this? In editorconfig? That seems that it's a "proposed property"...
Have you tried to create a Prettier config file?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Would you like to send us a pull request to fix that? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Pre-commit applies prettier with single quotes (per .pre-commit-config.yaml) but if prettier is applied in VSCode it will invariably apply double quotes (even when changing settings.json). The only way to make VSCode apply single quotes when applying Prettier is to add
quote_type = single
Additional details
The text was updated successfully, but these errors were encountered: