创建注册表文件并执行
- 创建一个名为“Sublime.reg”的文件
- 将下面的内容添加到一个新建的文件中,双击执行
Windows Registry Editor Version 5.00
[\HKEY_CLASSES_ROOT\Directory\shell\Edit with Sublime Text]
"Icon"="C:\\Program Files\\Sublime Text\\sublime_text.exe,0"
[\HKEY_CLASSES_ROOT\Directory\shell\Edit with Sublime Text\Command]
@="C:\\Program Files\\Sublime Text\\sublime_text.exe %1"
[\HKEY_CLASSES_ROOT\Directory\Background\shell\Edit with Sublime Text]
"Icon"="C:\\Program Files\\Sublime Text\\sublime_text.exe,0"
[\HKEY_CLASSES_ROOT\Directory\Background\shell\Edit with Sublime Text\Command]
@="C:\\Program Files\\Sublime Text\\sublime_text.exe %1"