Sublime Text 2 shortcut menu in Windows 8

As you know, Windows 8 came out yesterday. I updated and everything works fine, but when I installed Sublime Text 2 for my code editor, the button in the context menu that used to say β€œEdit using Sublime Text 2” no longer exists. I tried using my own registry registry and it adds a button, but Windows 8 still asks which program I want to open. 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?

+4
source share
4 answers

I use Sublime Text 2 on Windows 8 and I have no problem with the Open with Sublime Text 2 button, in fact I opened .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 assume that a problem that you are not avoiding your backslashes might be a problem

+6
source

Here you will find two very detailed and well-commented .reg files for Windows context menus. One for Version 2 and another for Version 3 Sublime Text.

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

+2
source

On Windows 8, the code below worked for me

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

+1
source

This is the best team. just save it in the bat file in the application directory and run it as an administrator.

U can use this command for other applications like Atom, VSCode, ... just by changing the lines of the application *

 @echo off SET AppKey=SublimeText3 SET AppTitle=Open with Sublime Text 3 SET AppPath=%~dp0sublime_text.exe SET AppIcon=%AppPath%,0 REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /ve /f /d "%AppTitle%" REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%" REG ADD "HKEY_CLASSES_ROOT\*\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%1\"" REG ADD "HKEY_CLASSES_ROOT\Folder\shell\%AppKey%" /ve /f /d "%AppTitle%" REG ADD "HKEY_CLASSES_ROOT\Folder\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%" REG ADD "HKEY_CLASSES_ROOT\Folder\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%v\"" REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%" /ve /f /d "%AppTitle%" REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%" /v "Icon" /f /d "%AppIcon%" REG ADD "HKEY_CLASSES_ROOT\Directory\Background\shell\%AppKey%\command" /ve /f /d "%AppPath% \"%%v\"" 
+1
source

Source: https://habr.com/ru/post/1442522/


All Articles