尝试在Visual Studio中打开的文件 [英] Files trying to open in Visual Studio
问题描述
我安装了Visual Studio并完成了我在那里必须做的事情,但将其留待将来使用,但现在我注意到我的文件夹正试图在Visual Studio中打开,这对于程序是不可能的,如何我会解决这个问题,如果文件本身没有
有任何扩展我可以重置为默认值吗?
嗨Umber420,
欢迎来到MSDN论坛。
你的VS版本是什么,请你分享截图?最好分享更多细节信息,这将有助于我们分析
这个问题。
如果要禁用或删除"在Visual Studio中打开"的上下文菜单,请查看
这个相似的问题并将此选项移至扩展上下文菜单。
首先,备份注册表并打开它,
在以下每个键下添加一个新的字符串值,
,名称为"扩展":
HKEY_CLASSES_ROOT \Directory \ Background\shell\AnyCode
HKEY_CLASSES_ROOT \Directory\shell\AnyCode
当选择上述任一注册表项时,您应该看到以下内容:
姓名
输入 数据
(默认)
REG_SZ @C: \Program Files(x86)\ Common Files \ Myoftoft Shared\MSEnv\1033 \\VSLauncherUI.dll,-1002
扩展
REG_SZ
执行此操作后,只有按住shift键才会在文件夹/目录中看到"在Visual Studio中打开",然后右键单击。
最好的问候,
萨拉跨度>
I installed Visual Studio and did what I had to do on there but left it for future uses, but now I'm noticing my folders are trying to be opened in Visual Studio which isn't possible for the program, how would I fix this if the files themselves don't have any extensions for me to reset back to default?
Hi Umber420,
Welcome to the MSDN forum.
What’s your VS version and could you please share the screenshot? It is better to share more detail information and that will help us analysis this issue.
If you want to disable or remove the context menu of "Open in Visual Studio", please have a look at this similar issue and move this option to the extended context menu.
Firstly, back up the registry table and open it, add a new string value under each of the following keys, with the name "Extended":
HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode
HKEY_CLASSES_ROOT\Directory\shell\AnyCode
You should then see the following contents when either of the above registry keys are selected:
Name Type Data
(Default) REG_SZ @C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\1033\\VSLauncherUI.dll,-1002
Extended REG_SZ
After doing this you will only see "Open in Visual Studio" on folders/directories when you hold down shift, then right click.
Best regards,
Sara
这篇关于尝试在Visual Studio中打开的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!