Benny
Benny

Reputation: 143

Prettier VSCODE reformat on save has stopped working

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

Upvotes: 0

Views: 158

Answers (1)

user12897961
user12897961

Reputation:

change it to

"editor.formatOnSaveMode": "true"

or you set it language wise eg:

 "[html]": {
    "editor.formatOnSave": false
  },

Upvotes: 2

Related Questions