简体   繁体   中英

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

I have uninstalled Visual Studio Code, but the "open with code" option is still in my context menu when I right click a folder.

If I install VS Code again, it will keep the old option and adds a second entry which opens VS 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM