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

0 points
Asked by:
Dirask JS Member

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

1 answer
0 points
Answered by:
Dirask JS Member

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

"prettier.singleQuote": true


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


0 comments Add comment
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.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé