Kevin192291
Kevin192291

Reputation: 2097

Prettier formatting with double quotes

Anyone else come across Prettier formatting code with Double quotes instead of Single even though you explicitly set it to replace with single in the preferences? Here is a pic: enter image description here

After a recent update to VSCode I started getting this issue and it is driving me crazy. Any ideas as to how to fix this. Am I wrong that the Prettier: Single Quote in fact does not format with single quotes instead of double? Thanks.

Upvotes: 6

Views: 11410

Answers (1)

Sushil Adokar
Sushil Adokar

Reputation: 516

Try to create file .prettierrc at package.json level with property singleQuote set to true as below:

{
  "singleQuote": true
}

Upvotes: 18

Related Questions