简体   繁体   English

如何从 Visual Studio Code 的上下文菜单中删除“用代码打开”?

[英]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.我已经卸载了 Visual Studio Code,但是当我右键单击一个文件夹时,“用代码打开”选项仍然在我的上下文菜单中。

If I install VS Code again, it will keep the old option and adds a second entry which opens VS code.如果我再次安装 VS Code,它将保留旧选项并添加第二个条目以打开 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.我使用ShellMenuView来查找违规记录(有几个)并可选择禁用它们。 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.一个是HKEY_CLASSES_ROOT\\directory\\shell\\Ticino\\Command但还有其他的。

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\\Background\\shell
HKEY_CLASSES_ROOT\\Directory\\shell\\ HKEY_CLASSES_ROOT\\目录\\shell\\

You can also move them to shift+right click as per this answer: https://superuser.com/a/1332589您还可以按照以下答案将它们移动到 shift+右键单击: https : //superuser.com/a/1332589

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Visual Studio 的上下文菜单中删除元素 - How to remove elements from the context menu in Visual Studio 如何从 PowerShell 控制台中使用 Visual Studio Code 打开文件? - How to open a file with Visual Studio Code from within a PowerShell console? 我如何打开Visual Studio这样的应用程序,以便我可以运行代码? - How to i open this applications is visual studio so i can run the code? 如何将此代码从Visual Basic转换为Perl? - How do I translate this code from Visual Basic to Perl? 从 windows 上的 ubuntu bash 终端打开 Visual Studio(不是 Visual Studio 代码) - Open Visual Studio (Not Visual Studio Code) from the ubuntu bash terminal on windows 无法在 Visual Studio Code 中打开终端 - Unable to open Terminal in Visual Studio Code 在代码管理菜单中恢复visual studio code中删除的文件 - Restore deleted files in visual studio code in the code management menu 如何在 C++ Visual Studio 中使用 alt 代码符号 - How do I use alt code symbols in c++ visual studio 如何设置Visual Studio Code problemMatcher以匹配C ++错误? - How do I set up Visual Studio Code problemMatcher to match C++ errors? 如何在 Windows 的 Visual Studio Code 中使用 GCC 包含所需的 C 库? - How do I include a needed C library using GCC in Visual Studio Code on Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM