How to prevent the "code . " command in the terminal from opening Cursor

If you’re in Windows, open Run (Win+R) and type:
%localappdata%\Programs\cursor\resources\app\bin

Delete two files:

  • code
  • code.cmd

I hope this helped.

12 Likes