Create a sublime-text-option.reg
, save it and execute it:
Windows Registry Editor Version 5.00
; Option will appear when you right click on a file
[HKEY_CLASSES_ROOT\*\shell\sublime]
@="Open with &Sublime"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%1\""
; ; Option will appear when you right click ON a folder
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder with &Sublime"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%1\""
; ; ; Option will appear when you right click INSIDE a folder
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="Open Folder with &Sublime"
"Icon"="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%V\""
; "Icon" line can be removed if you don't want the icon to appear
It will add on the Windows menu:
Open with Sublime
if you right click on a fileOpen Folder with Sublime
if you right click on a folderOpen Folder with Sublime
if you right click inside a folder
Sources: