This repository shows how to add a "Open in Cursor" option to the right-click context menu in Windows File Explorer. It allows you to launch the Cursor AI code editor directly in any folder with a single click.
- Adds "Open in Cursor" when you right-click on a folder or empty space inside a folder.
- Opens that location directly in the Cursor editor (like
cursor .
). - Uses either a
.reg
file or a PowerShell script to set up the registry keys.
Make sure the
cursor
CLI works in your terminal before running this.
- Open PowerShell as Administrator.
- Run the script:
.\add_cursor_context.ps1
- Open add_cursor_context.reg in Notepad.
- Replace YourUserName with your actual Windows username.
- Double-click the file to merge it into the Registry.
- Restart File Explorer (or log out/in) to apply.
File | Purpose |
---|---|
add_cursor_context.ps1 |
Automatically adds context menu via PowerShell |
add_cursor_context.reg |
Adds context menu manually via Registry Editor |
remove_cursor_context.reg |
Removes the right-click entry from the system |
- Cursor Editor installed
- cursor command available in system PATH
You can enable the cursor CLI by running: Ctrl + Shift + P → Shell Command: Install 'cursor' command in PATH
To remove the context menu later, use the remove_cursor_context.reg file provided
Inspired by developers who love productivity — and dislike manually navigating folders.