Open with Sublime in Windows
- Open Registry Editor: regedit
- Computer > HKEYCLASSESROOT > Directory > Shell: create new key and name it "Open with Sublime".
- Under "Open with Sublime", create a new key called "command", its value/data is path + "%1".
%1 is there to parse in the folder name.
e.g: "C:\Program Files\Sublime Text 2\sublime_text.exe" "%1"
Written by Arielle Nguyen
Related protips
2 Responses
I found this powershell snip, that does the same thing more or less.
REM Begin Copy
powershell
Set-Content "C:\Program Files\Sublime Text 2\subl.bat" "<a class="_hootified" a="" href="http://twitter.com/#!/@echo" onclick="javascript:var e = document.createEvent("CustomEvent"); e.initCustomEvent("hootletEvent", true, true, {type: "userHandle", value: "@echo"}); document.body.dispatchEvent(e); return false;">@echo</a> off"
Add-Content "C:\Program Files\Sublime Text 2\subl.bat" "start sublime_text.exe %1"
if (!($Env:Path.Contains("Sublime"))) {[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";C:\Program Files\Sublime Text 2", "Machine")}
exit
REM End Copy
you just paste into a cmd shell NOT a powershell.
over 1 year ago
·
Updated version for Sublime Text 3, working on Windows 7, 8 and 10:
https://gist.github.com/roundand/9367852
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#