Skip to content

Instantly share code, notes, and snippets.

@v-dimitrov
Last active January 15, 2017 11:24
Show Gist options
  • Save v-dimitrov/4f1edbad789cb2c286f960d1ff64a809 to your computer and use it in GitHub Desktop.
Save v-dimitrov/4f1edbad789cb2c286f960d1ff64a809 to your computer and use it in GitHub Desktop.
add sublime to windows context menu
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3]
@="Edit with S&ublime Text 3"
"Icon"="D:\\OneDrive\\Apps\\sublime\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command]
@="\"D:\\OneDrive\\Apps\\sublime\\sublime_text.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder as &Sublime Project"
"Icon"="\"D:\\OneDrive\\Apps\\sublime\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"D:\\OneDrive\\Apps\\sublime\\sublime_text.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="Open Folder as &Sublime Project"
"Icon"="\"D:\\OneDrive\\Apps\\sublime\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command]
@="\"D:\\OneDrive\\Apps\\sublime\\sublime_text.exe\" \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment