you know how there is an open with VS code option when you right click if you have it install in that manner, how do i add the same for cursor
When you right click on a file? Could you send a screenshot? What OS are you on?
i am in windows
please check this image, just like there is open with code, is there a way i can add open with cursor
You could modify the registry to include this after you’ve added the cursor command to path.
Just make a temp.reg file and paste
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\customCMD]
@="Open in Cursor"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\customCMD\command]
@="powershell.exe -command \"Set-Location -literalPath '%V'; . cursor .""
Run it. Now when you shift+right click a folder it will have an option to open that folder in cursor. If you want so it appears when you click in the empty space I think it’s just a matter of changing the reg path to * instead of directory. If you don’t want the shift + right click and just right click, remove the Extended=“” line
For files:
Note: It won’t appear in the main context menu but after you click on “show more options”.
Make a .reg file with the following, then run it:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\cursor]
@="Open with Cursor"
"Icon"="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\""
[HKEY_CLASSES_ROOT\*\shell\cursor\command]
@=hex(2):22,00,25,00,4c,00,6f,00,63,00,61,00,6c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,63,00,75,00,72,00,73,00,6f,00,72,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,22,00
For Folders
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cursor]
@="Open with Cursor"
"Icon"="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\""
[HKEY_CLASSES_ROOT\Directory\shell\cursor\command]
@=hex(2):22,00,25,00,4c,00,6f,00,63,00,61,00,6c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,63,00,75,00,72,00,73,00,6f,00,72,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,22,00
Modified from: Open folder in VS Code from Windows Explorer - Stack Overflow
Third party App:
https://www.microsoft.com/store/productId/9PC7BZZ28G0X?ocid=pdpshare
This will make it appear in the main context menu. The free trial is permanent but you can buy it for $1 to support the developper.
For folders, fill like this, save and activate cache.
For files use the match file option. Reboot if changes don’t readily appear.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cursor]
@="Open with Cursor"
"Icon"="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cursor\command]
@=hex(2):22,00,25,00,4c,00,6f,00,63,00,61,00,6c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,63,00,75,00,72,00,73,00,6f,00,72,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,22,00
Here’s the 3rd option which is to right click on an empty space of a folder to open the folder in Cursor. Thanks to the help of gpt4o in cursor ;D
In case someone is wondering what those HEX numbers means, I converted them to string: "%LocalAppData%\Programs\cursor\Cursor.exe" "%V"
I created an executable that installs the context menu item when you select empty space within a directory. Here’s my forum post about it.
for heavy keyboard users, insert & behind a letter you’d like to use as shortkey, here i used ‘C’
@="Open with &Cursor"
TIP: right clicking on folder and files requires selecting ‘show more options’ for the context menu, you can:
Shift+RightClick to open the context menu directly
Shift+F10 W for Keyboard users
then press ‘c’ and you are in the driving seat
single .reg script for files, folders and folder background
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Cursor]
@="Open with &Cursor"
"Icon"="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Cursor\command]
@="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\Cursor]
@="Open with &Cursor"
"Icon"="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\Cursor\command]
@="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe \"%1\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cursor]
@="Open with &Cursor"
"Icon"="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cursor\command]
@="%LOCALAPPDATA%\\Programs\\cursor\\Cursor.exe \"%V\""
Here a .reg script
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Cursor]
@="Edit with Cursor"
"Icon"="%LocalAppData%\\Programs\\cursor\\Cursor.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Cursor\command]
@="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\cursor]
@="Open Folder as Cursor Project"
"Icon"="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\cursor\command]
@="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\cursor]
@="Open Folder as Cursor Project"
"Icon"="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cursor\command]
@="\"%LocalAppData%\\Programs\\cursor\\Cursor.exe\" \"%V\""