1、首先,打开Vscode界面后,点击左下角的更多图标,找到settings选项
2、随后,在打开的设置面板中找到git选项
3、最后,鼠标点击勾选format indent inner html按钮,即可设置html代码自动缩进效果了