MENU▼

将Sublime Text3添加到右键菜单中

添加右键菜单
将以下代码保存为sublime_addright.inf文件,放入Sublime Text3安装目录中,鼠标右键文件安装。

[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg=SublimeText3

[SublimeText3]
hkcr,"*\\shell\\SublimeText3",,,"用 SublimeText3 打开"
hkcr,"*\\shell\\SublimeText3\\command",,,"""%1%\sublime_text.exe"" ""%%1"" %%*"
hkcr,"Directory\shell\SublimeText3",,,"用 SublimeText3 打开"
hkcr,"*\\shell\\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"Directory\shell\SublimeText3\command",,,"""%1%\sublime_text.exe"" ""%%1"""

注意文件编码,我保存为GBK格式才行,不然右键显示乱码。


删除右键菜单
将以下代码保存为sublime_delright.reg放入Sublime Text3安装目录中,双击运行。

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\SublimeText3]
[-HKEY_CLASSES_ROOT\Directory\shell\SublimeText3]

请为这篇文章评分:
( 这篇文章尚未评分 )