Skip to content

Instantly share code, notes, and snippets.

@primaryobjects
Created February 16, 2022 17:31
Show Gist options
  • Save primaryobjects/b09fbe7191d130d5bf04226f2eba8e48 to your computer and use it in GitHub Desktop.
Save primaryobjects/b09fbe7191d130d5bf04226f2eba8e48 to your computer and use it in GitHub Desktop.
Remove context menu opens to Open With Sublime Text 3 in Windows.
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command"
rem delete it for folders
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment