I can reformat the document by typing shift cmd p and type "Format document". This reformats. But when I save it does not (although it used to)
the format on save settings are below
"editor.formatOnSaveMode": "file"
editor default formatter is esben-prettier-vscode javascript formatter is enable
change it to
"editor.formatOnSaveMode": "true"
or you set it language wise eg:
"[html]": {
"editor.formatOnSave": false
},