Skip to content

Instantly share code, notes, and snippets.

@newpain01
Last active November 15, 2016 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newpain01/60192342dd35b5ad0b5f25d6c8c92d63 to your computer and use it in GitHub Desktop.
Save newpain01/60192342dd35b5ad0b5f25d6c8c92d63 to your computer and use it in GitHub Desktop.
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
Windows Registry Editor Version 5.00
; For folders.
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%V\""
; For files.
[HKEY_CLASSES_ROOT\*\shell\sublime]
@="&Open with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment