It is annoying to see many unnecessary options when I right click on a blank space inside a folder in windows explorer.
I want to remove "open with visual studio" when right click on an empty space in a folder
Is this possible?
Yes, this is possible.
Press Win + R
to open the Run dialog box.
Type regedit
and press Enter
. This will open the Registry Editor. You might be prompted to give administrative permission.
Go to the following registry path:
HKEY_CLASSES_ROOT\Directory\Background\shell
Under the shell
key, you should see subkeys that correspond to the context menu items. Look for a subkey related to Visual Studio. It might be named something like VSCode
or VisualStudio
or sometimes Any
.
Right-click on the subkey related to Visual Studio and select Delete
.
Confirm the deletion. But before that, take a backup of your registry just in case.
In contrast to context menu in the background, for clicking on files and folders, there are other registries to locate.
For files, it is under:
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers
For folders
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers
For specific file types
HKEY_CLASSES_ROOT\.<file_extension>\shellex\ContextMenuHandlers