Fix Broken "Open With Code" Shell Extension

The last update to Visual Studio Code broke the convenient “Open With Code” shell extension. Previously, you’d be able to right click on a file or folder in Explorer and open it in a new instance of Code. But after the update, the icon is broken and Windows instead opens a dialog to choose what program you’d like to use to view the file.

After trying a few shell extension remover tools, I tried reinstalling, which created a new working context menu entry, but the existing broken entry still appeared.

I finally got an answer back from whoever runs VS Code’s social media. Kudos to Microsoft for keeping on top of things.

Archiving this information here for future reference.

The registry keys are:

  • HKEY_CURRENT_USER\Software\Classes\*\shell\Ticino
  • HKEY_CURRENT_USER\Software\Classes\directory\shell\Ticino
  • HKEY_CURRENT_USER\Software\Classes\directory\background\shell\Ticino

See also this SuperUser question.

“Ticino” was probably the products code name during development. During the last update, some references to that name were removed, but the broken references hung around.