更新时间: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 文件中:
settings.json
Add the following to your settings.json file:
"editor.formatOnSave": true
如何在Visual Studio Code中格式化Laravel Blade代码?
在VS-Code中格式化保存动作导入语句
如何在Windows上的Visual Studio Code中格式化代码
如何在VS Code中保存时格式化代码
如何在Visual Studio Code中格式化HTML
在 VS Code 中保存时如何格式化代码
如何在 VS Code 中正确导入 Python 模块?
在VS Code中调试时如何跳过外部代码
如何在 VS Code 中更改默认终端
如何在 Emacs 中失去焦点时自动保存文件