FormatOnSave takes a long time
See original GitHub issueSummary
Frequently, when I save a file with FormatOnSave option on, it takes forever to finish saving. I have to quit VS Code and restart. Then, save happens instantaneously again. After a while, the issue re-appears. The identical issue to this one: https://github.com/prettier/prettier-vscode/issues/1253. Not at all clear why that issue is closed – clearly people are having this problem.
Github Repository to Reproduce Issue
https://github.com/prettier/prettier-vscode/issues/1253
Steps To Reproduce:
https://github.com/prettier/prettier-vscode/issues/1253
Expected result
Doesn’t take a long time to save.
Actual result
Took forever to save.
Additional information
Obviously, many people are having this same problem. This issue (https://github.com/prettier/prettier-vscode/issues/1253) should not be closed.
VS Code Version:
Prettier Extension Version:
OS and version:
Prettier Log Output
LOG GOES HERE. DO NOT USE A SCREESHOT, COPY AND PASTE THE TEXT
Issue Analytics
- State:
- Created 3 years ago
- Reactions:67
- Comments:115 (5 by maintainers)
Top Results From Across the Web
Anyone know how to make prettier run faster when ... - Reddit
Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer...
Read more >VS-Code Prettier Format On Save doesn't work - Stack Overflow
Follow these steps: CTRL + SHIFT + P; Format Document (in pop-up bar); Select Format Document; Select Configure Default Formatter.
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 >VS Code tips — Format on save - YouTube
Today's VS Code tip: Format on saveAutomatically format your code when you save it. No more worrying about checking in unformatted codeUse ...
Read more >I finally learned how to setup Prettier & VSCode - YouTube
... 00:00 Prettier & VS Code 00:11 Install Prettier extension 00:35 Enable Format on Save 01:07 Set default formatter 02:02 Test it out!...
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 FreeTop 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
Top GitHub Comments
The issue you referenced was closed because I can’t reproduce the bug. If someone can provide a valid repro I’m happy to try to fix it, but that bug nor this one has enough info. This extension has millions of monthly users. Clearly not everyone is having this issue. Please provide repro step and I’ll investigate.
I found a solution that works for me after MONTHS!
Uninstalled this bad boy and it fixed the issue for me. Hope it works for you guys too.