将Sublime Text3添加到右键菜单

文章发布地址:https://blog.qiuluo.xin/2019/02/15/%E5%B0%86sublime-text3%E6%B7%BB%E5%8A%A0%E5%88%B0%E5%8F%B3%E9%94%AE%E8%8F%9C%E5%8D%95/

进入Sublime Text3安装目录

新建名为sublime_addright.inf的文件。

将以下内容复制入文件中

[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"""

文件以ANSI编码格式保存,UTF-8编码保存会导致乱码的问题

保存退出文件,右键点击文件执行安装

你可能感兴趣的:(将Sublime Text3添加到右键菜单)