Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The Prettier VS Code extension fails in Cursor with the error message:
Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'XXX'-files
Where XXX changes based on the file type being edited (TypeScript, JSON, TypeScript JSX, JavaScript, etc.).
This occurs despite:
The extension being installed and enabled
Proper configuration in .vscode/settings.json
Prettier CLI working correctly (npx prettier --write formats files successfully)
The exact same configuration working perfectly in VS Code
Steps to Reproduce
Install Prettier extension from Extensions marketplace ([email protected] )
Create .vscode/settings.json in your project:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Create .prettierrc in project root:
{
"plugins": ["prettier-plugin-tailwindcss"]
}
Open any TypeScript, TSX, or JSON file
Try to save the file OR manually run “Format Document” (Shift+Alt+F)
Observe error notification: “Extension ‘Prettier - Code formatter’ is configured as formatter but it cannot format ‘TypeScript’-files”
Expected Behavior
Prettier should format files on save without errors, just like it does in standard VS Code.
Files should be formatted:
Automatically on save
Via manual format command (Shift+Alt+F)
Without any error notifications
Actual Behavior
Error notification appears for every file type
Formatting does not occur
Format on save fails silently
Prettier CLI (npx prettier --write file.ts) works correctly
The same configuration works perfectly in VS Code on the same machine
Error message examples:
Opening TypeScript file: “cannot format ‘TypeScript’-files”
Opening TSX file: “cannot format ‘TypeScript JSX’-files”
Opening JSON file: “cannot format ‘JSON’-files”
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Cursor Version: 2.3.41 (x64)
VS Code Version: 1.105.1 (x64)
OS: Windows 10.0.26200.7623
Prettier Extension Version: 12.1.0 (esbenp.prettier-vscode)
Prettier CLI Version: 3.8.0
Does this stop you from using Cursor
No - Cursor works, but with this issue
deanrie
(Dean Rie)
January 17, 2026, 2:29pm
3
Hey, this is a known issue with the Prettier extension after a recent update.
There’s a workaround here: No longer eligible as formatter for many types of files · Issue #3906 · prettier/prettier-vscode · GitHub
The issue is on the Prettier VS Code plugin side (not a Cursor bug), but the workaround helps. A similar report was already closed yesterday: Prettier broke after updating Cursor to 2.39.41
Try the workaround from the GitHub issue, it should help. Let me know if it doesn’t work.
The issue is on the Prettier VS Code plugin side (not a Cursor bug)
Response from the maintainer :
This is an issue with Cursor not supporting the same Extension API as VSCode. I am only one person and I have a day job, nor do I actively use Cursor (or any of the other vscode forks) so my ability to work on this is limited. Without either Cursor fixing their API to match VSCode or the Cursor team contributing fixes for this, it’s unlikely this is going to be fixed any time soon.
I’m also gonna quote you from here :
You’ve identified a real limitation… This means that while most extensions targeting VSCode 1.105 will work, ESM-specific features requiring runtime support won’t function. I’m escalating this to the team as it’s a valid compatibility gap for extension developers.
In the most non-aggressive way possible… it sounds like it has been a Cursor bug since Nov 27.
This is not “solved”, Cursor extensions API should match VSCode, downgrading Prettier is not a solution
Agreed, it’s just a workaround which we expect to be fixed soon!
lucksp
(Philip Lucks)
January 18, 2026, 8:32pm
8
same error since todays update.
Workaround is not a “solve”
ravirahman
(Ravi Rahman)
January 19, 2026, 1:53am
10
We have identified the issue and are working on a fix, which we expect to be released in version 2.4. This update should be rolling out later this month.
When you type inside command palette >Developer: Show running extensions - it shows me that prettier on “Activating…” status.
I guess this is cursor’s bug, inside my vscode everything works fine.
Yes, facing the same issue.
quick fix as of now is to downgrade the prettier from v12 to v11.
opened 05:50PM - 16 Jan 26 UTC
closed 02:32PM - 17 Jan 26 UTC
bug
triage-pending
### Preflight Checklist
- [x] I have read the [troubleshooting guide](https://g… ithub.com/prettier/prettier-vscode/blob/main/docs/troubleshooting.md)
- [x] I have searched [existing issues](https://github.com/prettier/prettier-vscode/issues) and this is not a duplicate
- [x] This is a bug with the **VS Code extension**, not with how Prettier formats code
### Issue Summary
At first I thought this might be an issue with just 'vue' files but the extension is no longer eligible as a formatter for seemingly any major file (it's blocking me on at least `.vue` / `.ts` and `.js` for the moment...
I'm normally in Cursor but I have Antigravity installed without updates for about a month - opened that up and the extension was listed as needing to restart after an update. Prior to restarting AG I was able to format the various files and after the release this morning I was no longer able to format any file. ¯\_(ツ)_/¯
<img width="326" height="257" alt="Image" src="https://github.com/user-attachments/assets/cb3bffda-f3a9-4725-9f6a-420db82a44d0" />
<img width="328" height="258" alt="Image" src="https://github.com/user-attachments/assets/f81e0c5e-9e98-4797-8a52-6d6d9561f319" />
### Reproduction Repository
https://github.com/prettier/prettier-vscode
### Steps to Reproduce
1. Update your extensions and restart IDE
2. Open any .vue / .js / .ts file
3. Attempt to format (fail)
4. Open commands --> Format Document With... --> Prettier no longer listed
### Expected Behavior
It should be enabled
### Actual Behavior
It was not
### Operating System
macOS
### VS Code Version
Cursor 2.3.35 (but also VS Code and Antigravity latest)
### Prettier Extension Version
12.1.0
### Prettier Version
Multiple but for this specific repo 3.8.0
### Prettier Extension Logs
```text
You can no longer choose prettier in the bottom right. Installing 11.0.2 regains functionality
```
### Prettier Configuration
```json
```
Raphael909
(Raphael909)
January 20, 2026, 4:47pm
14
It appears to be resolved in recent update. Check out version 2.4.2
its related new Prettier version i downgrade v12 to v11 its works.
Guys I faced the same problem, I downgrade prettier version to 11.0 but still my ts. files didnt response to prettier thats why I hard coded these lines on my settings.json file
and it works for me you can try it
“editor.formatOnSave”: true,
“editor.defaultFormatter”: “esbenp.prettier-vscode”,
“[typescript]”: {
“editor.defaultFormatter”: “esbenp.prettier-vscode”
},
Why it is working in v11 and not working in v12
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
Temporary help
It’s been a week, is there any update? is it working now in the latest version or still my code will continue looking ugly?
It’s been a week, is there any update? is it working now in the latest version or still my code will continue looking ugly?
ravirahman
(Ravi Rahman)
January 27, 2026, 5:07pm
23
There was another issue where Prettier v12 didn’t work on Windows. We have fixed the issue in version 2.4.22 of Cursor, which should be rolling out this week.