Format document with option not shown on right mouse click

Format document with option is not shown on right mouse click in the .tsx file. I have a Laravel Inertia React project. This option worked until yesterday, but not work from today after the cursor update. But the same option works in VS Code.

Hey, thanks for the report. this is a known issue with formatting extensions (Prettier and others) after recent Cursor updates.

There’s a working workaround with step-by-step instructions here: No longer eligible as formatter for many types of files · Issue #3906 · prettier/prettier-vscode · GitHub (you need to roll back the Prettier extension version).

A similar report was already resolved here: Prettier broke after updating Cursor to 2.39.41

Root cause: Cursor doesn’t support ESM extensions yet (this changed in VSCode 1.100+), and the team is working on adding that support.

Try the workaround above, it should help.