how to get the html format on vscode code example Example: vscode format code On Windows Shift + Alt + F. On Mac Shift + Option + F.