Open with VS code in the menu when you right click

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


i get this error @aidan653

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"