Date 20210802 By WJB
使用vscode编写代码时,代码格式调整比较麻烦,多余空格,多余空行等,代码不够美观,可读性差。可以通过vscode 设置(setting)实现代码自动格式化调整。设置过程如下:
点击 vscode 软件 左下角设置按钮
打开设置界面后,右上角有个转为json的按钮,点击该按钮转为json。
在数组中添加
"editor.formatOnType": true,
"editor.formatOnSave": true,
两句即可。