在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,"DirectoryshellSublimeText3",,,"用 SublimeText3 打开" hkcr,"*\shell\SublimeText3","Icon",0x20000,"%1%sublime_text.exe, 0" hkcr,"DirectoryshellSublimeText3command",,,"""%1%sublime_text.exe"" ""%%1"""
然后选中文件右键选择安装即可。