Skip to content

Instantly share code, notes, and snippets.

@zettoone
Created December 19, 2012 01:10
Show Gist options
  • Save zettoone/4333593 to your computer and use it in GitHub Desktop.
Save zettoone/4333593 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
; Sublime Text 2 "Open With" context menu for files and folders.
; Also assigns the icon to the menu item.
; By Danik
;
; IMPORTANT!
; You need to replace all the paths to sublime_text.exe if it's
; installed in a different location than
; C:\Program Files\Sublime Text 2\sublime_text.exe
; Note the double backslashes.
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2]
@="Open with S&ublime Text 2"
"Icon"="C:\\Program Files\\Sublime Text 2\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command]
@="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\" \"%1\""
; Open folders
[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\""
; Open current folder
[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\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment