Skip to content

Instantly share code, notes, and snippets.

@dufferzafar
Created September 10, 2013 17:27
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 dufferzafar/6512715 to your computer and use it in GitHub Desktop.
Save dufferzafar/6512715 to your computer and use it in GitHub Desktop.
Associate Windows Sublime Text
Windows Registry Editor Version 5.00
; Add to context menu of every file
[HKEY_CLASSES_ROOT\*\shell\Sublime]
@="Open with S&ublime Text"
"Icon"="\"F:\\[Softwares]\\Essentials\\Sublime-Text-3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\Sublime\command]
@="\"F:\\[Softwares]\\Essentials\\Sublime-Text-3\\sublime_text.exe\" \"%1\""
; Context menu of a folder
[HKEY_CLASSES_ROOT\Directory\shell\Sublime]
@="Open Folder as S&ublime Project"
"Icon"="\"F:\\[Softwares]\\Essentials\\Sublime-Text-3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\Sublime\command]
@="\"F:\\[Softwares]\\Essentials\\Sublime-Text-3\\sublime_text.exe\" \"%1\""
; This will make it appear when you right click INSIDE a 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