Skip to content

Commit

Permalink
docs: add solution for Cursor hijacking the 'code' command in WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
spences10 committed Jan 28, 2025
1 parent 84569a4 commit 4d7e339
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions posts/cursor-setup-for-wsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,19 @@ List your available WSL instances with `wsl --list --verbose`.
```powershell
wsl --list --verbose
```

## Cursor hijacked the code command

I had this happen recently, installed Cursor, no issues, but, trying
to use the `code` command would open Cursor instead. A quick search
found this from [Nam Vũ](https://namvu.net/)
[Cursor stole your ‘code’ command? Here’s how to revert it](https://namvu.net/2025/01/cursor-stole-your-code-command-heres-how-to-revert-it/)

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

Delete:

- Code
- Code.cmd

Thank you Nam!

0 comments on commit 4d7e339

Please sign in to comment.