I love Cursor as much as the next guy but there’s one thing I don’t like about it. When you install it on Windows or Mac, it will takeover the ‘code’ command in your terminal, which is usually reserved for VSCode (for example if you navigate to a folder and type code . it will open that folder in Cursor instead of VSCode). This is fine if you use Cursor exclusively but if you’re like me who uses Cursor and Cline side by side, then this is especially annoying when you want to launch code.

Luckily user ubergonmx from Cursor forum provided a solution on Windows, here’s how:

Open this folder %localappdata%\Programs\cursor\resources\app\bin

Delete:

  • Code
  • Code.cmd

That’s it. Now the code command will launch VSCode instead. If you look inside that folder you’d notice the file cursor and cursor.cmd are still there, which means if you want to launch cursor instead of code you can simply type cursor . , which is how it should’ve been.

That’s all folks

0 0 votes
Article Rating