Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor conflicts with VSCode system environment variables in some edge cases #2508

Open
aidanamavi opened this issue Dec 21, 2024 · 1 comment

Comments

@aidanamavi
Copy link

          > This is because Cursor is just naively adding the `/bin` dir to the System PATH:
C:\Users\lesmo\AppData\Local\Programs\cursor\resources\app\bin

This folder contains cursor and code binaries, which are overriding VS Code. This is wrong, Cursor should be adding itself to the User PATH, not System PATH (Cursor devs please take note).

To fix this, the VS Code path must be set before Cursor. I recommend removing Cursor from the System PATH, and adding it at the end of the User PATH. If you want to replace Code with Cursor, just remove Code from the PATH.

image

Thank you so much man! That worked 100%

Originally posted by @fabricioCraft in #1216 (comment)

@aidanamavi
Copy link
Author

I suggest we create a configuration in Cursor settings to allow users to change whether Cursor or VSCode takes precedence in the system environment variables. I'm happy to make these changes. If anyone wants to point me in the right direction to help me accomplish this, I'd greatly appreciate it. I essentially just need to find the related configuration files in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant