昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期三, 九月 12, 2018

[软件开发] VSCode auto formatting change all single quotes to double quotes

Tags: VScode, Prettier

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.

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.