Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 Context Menu in Windows 8

As you may know, Windows 8 came out yesterday. I have upgraded, and everything seems to be working fine, but when I installed Sublime Text 2 for my code editor, the button in the context menu that used to say "Edit with Sublime Text 2" is not there anymore. I have tried using a custom registry script, and it adds the button, but Windows 8 still asks me what program I want to open it with. Here's the script I used:

(Saved as add_context_menu.reg)

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2]

@="Open with S&ublime Text 2"

[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command]

@="C:\Program Files\Sublime Text 2\sublime_text.exe \"%1\""

Any help?

like image 887
jstnknt Avatar asked Dec 27 '22 15:12

jstnknt


2 Answers

I am using Sublime Text 2 in Windows 8 and I have no problem with the Open with Sublime Text 2 button, actually I opened the .reg using it :)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2]

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

I guess the fact you weren't escaping your backslashes might be the problem

like image 86
emartel Avatar answered Jan 25 '23 15:01

emartel


Here you find two very detailed and well commented .reg files for Windows Context Menus. One for Version 2 and another one for Version 3 of Sublime Text.

https://github.com/cbmeeks/sublime-text-2-context-menu-windows

like image 32
Armin Avatar answered Jan 25 '23 15:01

Armin