formatOnSave is not working
See original GitHub issueAfter upgrade version to v1.0.0, the vscode setting formatOnSave is not working on my machine.
But when I changeprettier.eslintIntegration to true, the auto-format is working.
Are there some changes not listed on the Changelog between the version bumping? Or maybe I missed something on the vscode setting?
My Prettier - Code formatter: version 1.0.0
My vscode version: 1.18.1
My vscode setting:
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
Issue Analytics
- State:
- Created 6 years ago
- Reactions:41
- Comments:35 (8 by maintainers)
Top Results From Across the Web
VS-Code Prettier Format On Save doesn't work - Stack Overflow
Try to make your code prettier manually by pressing CTRL + SHIFT + P >>> Format Document. If your file is being formatted...
Read more >Format on Save (prettier) stopped working with latest update
formatOnSave , the problem is prettier stopped working, even manual formatting (SHIFT + ALT + F) wasn't working, and it worked again after ......
Read more >VSCode Format On Save – everything you need to know
Troubleshoot : VSCode Format On Save not working · Choose a default formatter instead of null – the default value. · Uninstall other...
Read more >How to fix Prettier Extension in VS Code - YouTube
I just updated VS Code and my prettier extension (to format all of my code) was not working. I didn't realize how much...
Read more >How to use Prettier in VS Code - Robin Wieruch
A brief step by step tutorial on how to install and use Prettier in VS Code (Visual Studio Code). Prettier is an opinionated...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@CiGit no, sorry. thought I copy+pasted the important part.
This doesn’t work:
This works:
First version was working before the November update.
Just so it shows up here explicitly as a comment, VS Code has a timeout for how long format-on-save actions are allowed to take. You can configure this with:
The default is
750(in ms), but you can make it as high as you want. Moving up to3000fixed my problems.