Shyann
Shyann

Reputation: 41

Prettier Not Formatting on Save

Pretty basic, but I'm stuck. Prettier extension is not formatting my code on save in VS Code.

{"prettier.useTabs": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": true,
"prettier.jsxSingleQuote": true,
"prettier.jsxBracketSameLine": true,
"workbench.iconTheme": "vscode-icons",
"editor.formatOnSave": true }

Still, Prettier isn't working. What am I missing?

Upvotes: 4

Views: 5691

Answers (2)

D.J
D.J

Reputation: 1

Add prettier as you default formatter. You can follow this steps.

Also in the vs code settings, set the "Format on save Mode" to "file". VS Code Format Settings Page

Upvotes: 0

D. Mohamed
D. Mohamed

Reputation: 93

Try to add Prettier as your 'Default Formatter'. Check on @Hamed post here

Upvotes: 1

Related Questions