Skip to content

Instantly share code, notes, and snippets.

@thehig
Created December 16, 2016 21:18
Show Gist options
  • Save thehig/266660207b66c05a131bdf3fa0b8aaeb to your computer and use it in GitHub Desktop.
Save thehig/266660207b66c05a131bdf3fa0b8aaeb to your computer and use it in GitHub Desktop.
reg: Open folder with sublime
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="&Open folder with Sublime Text"
"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\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="&Open folder with Sublime Text"
"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\""
@thehig
Copy link
Author

thehig commented Dec 16, 2016

Source

Windows Registry Editor Version 5.00

; For folders.

[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\SublimeText\\sublime_text.exe\",0"

[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\SublimeText\\sublime_text.exe\" \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\SublimeText\\sublime_text.exe\",0"

[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command]
@="\"C:\\Program Files\\SublimeText\\sublime_text.exe\" \"%V\""

; For files.

[HKEY_CLASSES_ROOT\*\shell\sublime]
@="&Open with Sublime Text"
"Icon"="\"C:\\Program Files\\SublimeText\\sublime_text.exe\",0"

[HKEY_CLASSES_ROOT\*\shell\sublime\command]
@="\"C:\\Program Files\\SublimeText\\sublime_text.exe\" \"%1\""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment