Prettier formatting not working in Cursor

Recently, Prettier stopped working in my Cursor editor for JSX, TS/TSX, JS, HTML, CSS, SCSS.
Format on save and manual format both don’t trigger anymore.

I’ve shared:

  • Prettier installation screenshots

  • My settings.json

If anyone has faced this issue or knows how to fix it, please help.
Thanks!

{
  "prettier.printWidth": 140,
  "prettier.enable": true,
  "prettier.requireConfig": false,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "eslint.format.enable": false,
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  }
}

Hey, thanks for the report. This is a known issue with Prettier v12+. Cursor didn’t support ESM extensions until recently.

The fix is already included in version 2.4:

  • Update Cursor to 2.4+ (Cursor Settings > Beta > Early Access)
  • After updating, reload the window: Ctrl + Shift + P > Developer: Reload Window

If you don’t want to wait for the update, here’s a temporary workaround: After last update PRETTIER stopped working - #19 by deanrie

Also, I noticed your TypeScript settings use vscode.typescript-language-features as the default formatter instead of Prettier. That might also affect this. After updating, double-check that setting if the issue still happens.

hello, I still can’t use prettier v12+ in cursor. The version of cursor is 2.4.18

Me too, version 2.3 doesn’t work, neither does version 2.2.44 that I re-downloaded.

Formatting suddenly stopped working (all file types)

I’m experiencing an issue where code formatting has completely stopped working across all file types — HTML, JSON, TypeScript, SCSS, and CSS.

There were no configuration changes on my side. While developing, formatting suddenly stopped working altogether. I’ve tried all recommended troubleshooting steps, but none resolved the issue.

Environment

  • Cursor version: 2.4.20 (User Setup)

  • VS Code version: 1.105.1

  • Commit: 20b56586b0785b8843487045393c57c6d89b7100

  • Date: 2026-01-22T07:38:04.757Z

  • Build type: Stable

  • Release track: Early Access

Runtime

  • Electron: 39.2.7

  • Chromium: 142.0.7444.235

  • Node.js: 22.21.1

  • V8: 14.2.231.21-electron.0

OS

  • Windows: Windows_NT x64 10.0.26200

Formatting does not work via:

  • Format on save

  • Format document

  • Any supported language formatter

Any advice or insight would be appreciated.

You can downgrade your prettier ext version to 11.x

Yep, only this helped (version 11.x). Thanks!

It helps, thanks!

thank you for the report. we found the bug affecting Prettier users on Windows and are rolling the fix out.