VSCode auto formatting change all single quotes to double quotes

  • fennng 
I recently switch to a new computer. After setting up my angular environment, I noticed that my single quotes are changed to single quotes after a auto indent operation.
This will result the TSLint to give errors.
The problem is caused by the Prettier plugin.
This is good plugin. So you don’t have to uninstall it. Just add the following line into the user settings will resolve the problem.
“prettier.singleQuote”: true,
It’s also a good tool to transform all you double quotes to single quotes or vice versa.


您的电子邮箱地址不会被公开。 必填项已用*标注