且构网

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

如何在VS Code中保存时格式化代码

更新时间:2022-12-07 07:54:35

截至2016年9月( VSCode 1.6),现已正式受支持

As of September 2016 (VSCode 1.6), this is now officially supported.

将以下内容添加到您的 settings.json 文件中:

Add the following to your settings.json file:

"editor.formatOnSave": true