autoindent html in VSCode
Open your settings.json file following these steps:
Ctrl+Shift+P- to open the "Command Palette"- type this:
settings jsonand choose thePreferences: Open User Settings (JSON) - go to the end of the JSON file and add this:
{
// a bunch of other configs...
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
}