How to make cursor not override the vscode command?

Hey, I would love to use Cursor but changing code . to opening Cursor instead of VSCode is such a deal breaker for me.

Is there any setting where I can make sure Cursor don’t override the code command?

I’m on Windows

1 Like

You can reinstall the standard version of VSC and ensure that the “Add to PATH” option is checked during the setup process. This will overwrite the existing code command with the standard VSC.

Thanks for the suggestion, but I solved the issue by deleting the code command files from Local App Data > Cursor folder.

I wonder why Cursor add those overriding the code . command though, it’s a bit annoying. They should just stick to cursor .

2 Likes

I use Windows and I recently face the same issue. Here is what I did:

  1. Navigate to %localappdata%\Programs\cursor\resources\app\bin (C:\Users\<username>\AppData\Local\Programs\cursor\resources\app\bin for Windows).
  2. Delete two files: code and code.cmd
  3. Make sure that C:\Users\<username>\AppData\Local\Programs\Microsoft VS Code\bin is in the PATH environment variable. (You can edit it by typing Win+R and systempropertiesadvanced)