how to remove a context menu item in windows?

windows
Category Software and digital electronics / IT
2024-08-01 16:12

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?

Answered by robin
2024-08-02 02:00

Yes, this is possible.

Open the Registry Editor

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.

Navigate to the Shell Key

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.

Other cases for context menu item removal

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
×

Login

No account?
Terms of use
Forgot password?