Languages

VS Code - Prettier - single quotes are replaced with double quotes

0 points
Asked by:
Evania
584

When I use the formatting command in vs code, prettier convert single quotes into double-quotes.
How to fix it?

1 answer
3 points
Answered by:
Dharman
518

Paste the below code in your VS Code settings.json file:

Or

  1. Go to preferences/settings (ctrl+,), 
  2. Type 'Prettier single quotes' and check this checkbox:

 

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join