In Visual Studio Code, I use the following setting to end my HTML documents with a newline after formatting (not saving) them with Shift + Alt + F:
"html