Adds an item to Windows Explorer context menu (the menu that appears on right click) so that the selected folder can be opened as a project in Sublime Text. It’s really very useful!
If you want to use these, copy the text from either of the versions below, save as a text file with a ‘.reg’ file extension,
e.g., open_folder_with_sublime_2.reg
Once done, double click the file from Windows Explorer to merge the contents with the Windows registry. Alternatively, make the changes manually using RegEdit. The choice and responsibility is entirely yours.
This was found elsewhere so the credit is due there; it’s here for my reference.
Sublime Text 2
Windows Registry Editor Version 5.00 ; 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"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0" [HKEY_CLASSES_ROOT\Directory\shell\sublime\command] @="\"C:\\Program Files\\Sublime Text 2\\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"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0" [HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command] @="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%V\""
Sublime Text 3 – same thing really, just the path to the exe is changed.
Windows Registry Editor Version 5.00 ; 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"="\"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\"" ; 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"="\"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 OS X try this: http://charles.lescampeurs.org/2012/06/18/right-click-open-with-sublime-text-2