When doing #drupal front-end development using VSCode, is there an extension + config that will automatically properly format .html.twig files according to Drupal coding standards?

Does Drupal even have coding standards for HTML?

Is it:

<div>blah</div>

Or:



<div>

blah
</div>

@ultimike I use ctrl + shift + i to format files. You can give it a try.

@beautifulmind ctrl + shift + i doesn't do anything for me (MacOS + VSCode)

What am I missing?

@ultimike @beautifulmind This is the “Format Document” command, which should list whatever keystroke it is associated with in the “Command Palette”. I usually access the palette via command-shift-P or ctrl-shift-P to access it and start typing > Format