getcursor / cursor

The AI Code Editor
https://cursor.com
24.09k stars 1.51k forks source link

`code .` opens cursor #864

Open TubbyStubby opened 1 year ago

TubbyStubby commented 1 year ago
➜ cursor --version
0.9.3
e83fb25fe9144aa8b230e6f9ee2056e20fb24c70
x64

OS: Windows 11

I installed cursor few days ago. And during installation I was give 2 options, install code or cursor command. I chose cursor, and it works fine. But I just noticed that when I use code . it opens cursor which is not what I was expecting.

sualehasif commented 1 year ago

seems like a super annoying bug. really sorry for causing this. will investigate soon if this is a bug on our side. (cc: @Sanger2000) if this is, will release a hot fix!

jsnel commented 1 year ago

I also encountered this issue some time ago and it happened because cursor added itself to the PATH before VS Code, instead of append itself, and since there is a code and code.cmd executable in there the code command would open cursor. This is despite me explicitly not choosing to override code with cursor during setup.

AppData\Local\Programs\cursor\resources\app\bin\ (contains code, code.cmd, cursor, cursor.cmd) AppData\Local\Programs\Microsoft VS Code\bin\ (contains code, code.cmd)

For me it was extra annoying because all of the sudden the "VS Code" external code editor in GitKraken would 'appear' to be mapped to cursor instead of code, with no way of changing it (other than uninstall cursor).

But changing the order of the PATH (code before cursor) fixed it for me.

GitMurf commented 11 months ago

same issue for me. this is very upsetting. vscode is still my main IDE and I installed cursor to try it out for a while to see if maybe I would replace vscode down the road. I am uninstalling cursor because of this.

shyagamzo commented 11 months ago

Any news? This is still a problem.

AlxndrJhn commented 10 months ago

I am also looking for a fix, I am deleting

remove-item c:\Users\<username>\AppData\Local\Programs\cursor\resources\app\bin\code.cmd
remove-item c:\Users\<username>AppData\Local\Programs\cursor\resources\app\bin\code

after every update

I accepted the code replacement, but can't find the setting, I would like to deactivate this feature

Souvik-Cyclic commented 2 months ago

This issue is still not fixed. @sualehasif

A workaround for this is: Link to Cursor Forum

twirlse commented 2 weeks ago

I fixed this issue by uninstalling Cursor :) Not really acceptable behavior to hijack other programs, IMHO.