且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VS Code自动缩进/代码格式化将单引号更改为双引号

更新时间:2022-12-07 10:45:10

扩展使用在VS Code用户设置文件中设置的设置.

The extensions uses the settings that are set in your VS Code user settings file.

要更改它,请打开您的用户设置文件

To change it, open your user settings file

Ctrl + Shift + P 并键入Open User Settings.

Ctrl+Shift+P and type Open User Settings.

搜索prettier.singleQuote并将其更改为true

Search for prettier.singleQuote and change it to true like

"prettier.singleQuote": true