SHO酱的Blog

SHO酱的Blog

为 Windows 添加 Sublime Text 右键菜单

2021-10-06
  1. 新建一个文本文件,命名为【sublime_addright.reg】

  2. 编辑刚刚新建的文件,写入以下内容(注意:修改其中的文件路径和菜单名称):

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\SublimeText]
@="Edit with Sublime Text"
"Icon"="C:\\Program Files\\Sublime Text\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\*\shell\SublimeText\command]
@="C:\\Program Files\\Sublime Text\\sublime_text.exe %1"
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText]
@="Edit with Sublime Text"
"Icon"="C:\\Program Files\\Sublime Text\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText\command]
@="C:\\Program Files\\Sublime Text\\sublime_text.exe %1"
  1. 打开【sublime_addright.reg】文件添加注册表信息