Sublime Forum

Open Folder directly from File Explorer

#1

This is a feature request.

I think it would be great if I can right click on a folder and open it directly in Sublime.

Don’t know if this already exists.

Thanks

2 Likes

#2

I made a Windows Registry file for myself to do this (it essentially mimics Atom’s registry entries).

The following will add Sublime to the right click for Folders and Files:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Sublime Text]
@=“Open with Sublime Text”
“Icon”="“C:\Program Files\Sublime Text 3\sublime_text.exe”"

[HKEY_CLASSES_ROOT\Directory\shell\Sublime Text\command]
@="“C:\Program Files\Sublime Text 3\sublime_text.exe” “%1"”

[HKEY_CLASSES_ROOT\Directory\Background\shell\Sublime Text]
@=“Open with Sublime Text”
“Icon”="“C:\Program Files\Sublime Text 3\sublime_text.exe”"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Sublime Text\command]
@="“C:\Program Files\Sublime Text 3\sublime_text.exe” “%V”"

[HKEY_CLASSES_ROOT*\shell\Open with Sublime Text]
“Icon”=“C:\Program Files\Sublime Text 3\sublime_text.exe”

[HKEY_CLASSES_ROOT*\shell\Open with Sublime Text\command]
@="C:\Program Files\Sublime Text 3\sublime_text.exe “%1"”

0 Likes

#3

Thanks Acee. This should be added to Sublime. It’s a very useful feature.

0 Likes

#5

Additionally an Icon would be great in shell.

I did it manually by adding in HKEY_CLASSES_ROOT*\shell\Open with Sublime Text\ a new string “Icon” with value C:\Program Files\Sublime Text 3\sublime_text.exe,0

Would be great if the icon is set by default (installer).

0 Likes