I am looking for a way to right click a file in Windows 10, select "Open with" -> "Sublime Text", and then have a new Sublime Text window appear.
The default action is to open the file in a new tab, if Sublime is already open. This is usually not what I want, especially since I usually have Sublime open on a different desktop.
I've tried making a shortcut with the -n
flag added, which correctly gives me a new window when just using the shortcut. But when I "Open with" using that shortcut it opens the file in an existing window.
I also tried "Open with" a batch file containing subl -n
, ``but alas.
This works for me (and is more comfortable for me than the Open with submenu):
regedit.exe
HKEY_CLASSES_ROOT\*\shell
*
with the appropiate extension
(Default)
string to:C:\Program Files\Sublime Text 2\sublime_text.exe -n "%1"
(basically copy the original keys, adding the -n
)
Icon
:C:\Program Files\Sublime Text 2\sublime_text.exe,0
To add the entries to the context menu for folders, add the same entries in:
"%1"
with "%V"
(Thanks Filip)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With