Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ScribbleGhost/4757497b4afee2cfecd82dded7ee1bff to your computer and use it in GitHub Desktop.

Select an option

Save ScribbleGhost/4757497b4afee2cfecd82dded7ee1bff to your computer and use it in GitHub Desktop.
set SUBLIMEDIR=C:\Portable\sublimetext\sublime_text.exe
rem OPEN FILES WITH SUBLIME TEXT
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%SUBLIMEDIR%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%SUBLIMEDIR% \"%1\"" /f
rem OPEN FOLDERS WITH SUBLIME TEXT
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%SUBLIMEDIR%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%SUBLIMEDIR% \"%1\"" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment