I have installed Visual Studio Community 2017 RC on Windows 10.
After installing, it added a new context menu when right clicked on any directory.
I want to remove this option, but can't seem to find it from VS2017 settings.
I have installed Visual Studio Community 2017 RC on Windows 10.
After installing, it added a new context menu when right clicked on any directory.
I want to remove this option, but can't seem to find it from VS2017 settings.
Run regedit.exe
, go to HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode
, take ownership of this key, change the permisions for your account and add a DWORD (32Bit)
with the name HideBasedOnVelocityId
and set the value to 006698a6
(hex):
When you now do a rightclick the entry is gone:
Delete entry or rename it to ShowBasedOnVelocityId
to enable the entry again:
HKEY_CLASSES_ROOT\Directory\shell\AnyCode
and delete the key. If you want it back, import the reg file.
This answer is originally from here, and I am just reproducing it here for sake of brevity.
Use the Windows Registry editor to delete two keys:
HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode
HKEY_CLASSES_ROOT\Directory\shell\AnyCode
You may want to back up your registries before going for a delete operation, just a good practice.
From Bryson Gibbons on the Microsoft Forums:
Another option, if you don't want to just delete it or can see it being sometimes useful but don't want it cluttering up the context menu, is to move it to the extended context menu (where it is only visible with Shift+Right-click).
Using the Windows Registry editor, 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.
You can use ShellMenuView to find this context menu entry and disable it.
Based on the answer by @Blaze:
Instead of searching for keys with the registry editor, just copy this into an empty file with a .reg
file extension and execute that file to delete the keys.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
[-HKEY_CLASSES_ROOT\Directory\shell\AnyCode]
None of the solutions worked for me... So I opened the Registry Editor, go to menu Edit > Find... And enter the name you want to find Open in Visual Studio
(or simply Visual Studio
if you want a broader search)... Click Find Next
and keep pressing F3 until you find the desired key...
In my computer, it was found in:
HKEY_CURRENT_USER\Software\Classes\Local Settings\MuiCache\9a3\52C64B7E
There was a value name
@C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\1055\\VSLauncherUI.dll,-1002
with value data
&Open with Visual Studio
So just erase it (but make sure to backup your registry before doing that, just in case)