How do I remove 'open with code' from my context menu for Visual Studio Code? How do I remove 'open with code' from my context menu for Visual Studio Code? windows windows

How do I remove 'open with code' from my context menu for Visual Studio Code?


This link will help you to modify registry.

Most of the menu items that used for all files and folders can be found at one of these keys:

HKEY_CLASSES_ROOT\*\shell    HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers    HKEY_CLASSES_ROOT\AllFileSystemObjects\ShellEx


I used ShellMenuView to find the offending records (there were several) and optionally disable them. You can then right click and select properties on the "Open with code" rows to find the registry paths. With that info I could delete the relevant keys from the registry manually. One was HKEY_CLASSES_ROOT\directory\shell\Ticino\Command but there were others.


Old question, but I got here searching for those exact terms.

You may also find right click options here:HKEY_CLASSES_ROOT\Directory\Background\shell
HKEY_CLASSES_ROOT\Directory\shell\

You can also move them to shift+right click as per this answer: https://superuser.com/a/1332589