FMFF
FMFF

Reputation: 1718

Why does "Open with Code" appear twice in the context menu?

When I right click a file, I see Open with Code twice. I know one of them is from the actual Visual Studio Code installation. When I uninstalled VSCode, I noticed the the number 1 in the screenshot below remained. Where is it that coming from and how do I get rid of it?

Context menu showing Open with Code twice

Upvotes: 2

Views: 1030

Answers (1)

Alex Myers
Alex Myers

Reputation: 7235

It looks like you have a lingering context menu item from a previous Visual Studio Code install. Try the following:

  1. Open your registry editor. You can find this by searching for "regedit" in the Windows search bar.
  2. Navigate to Computer\HKEY_CLASSES_ROOT\Directory\shell
  3. Look for the VSCode folder.

If you see two VSCode folders at this point, open them up and see if one is pointing to a Code.exe that no longer exists. If that's the case, simply delete the folder for the nonexistent install and your problem should be fixed.

enter image description here

Upvotes: 1

Related Questions