how to autoformat html vscode code example Example 1: beautify command vscode Mac Shift + Option + F Example 2: beautify command vscode Windows: Shift + Alt + F