sublime text添加右键菜单
程序员文章站
2022-04-21 12:05:05
...
sublime text添加右键菜单
之前在网上下载了绿色版的sublime text3,鼠标右键菜单里没有关联,挺不方便。网上搜集了注册右键的注册表文件,记录一下。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\SublimeText3]
@="open with SublimeText3 "
"Icon"="D:\green\sublime_text_3114.win.zh_cn.x64\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\*\shell\SublimeText3\command]
@="D:\green\sublime_text_3114.win.zh_cn.x64\\sublime_text.exe %1"
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3]
@="open with SublimeText3 "
"Icon"="D:\green\sublime_text_3114.win.zh_cn.x64\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3\command]
@="D:\green\sublime_text_3114.win.zh_cn.x64\\sublime_text.exe %1"
将以上代码复制到sublime_reg.reg文件后执行即可。
其中D:\green\sublime_text_3114.win.zh_cn.x64\sublime_text.exe为sublime text的解压路径。注意路径中为两个\\。
另外,附上删除右键菜单的注册表文件
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\SublimeText3]
[-HKEY_CLASSES_ROOT\Directory\shell\SublimeText3]
同样保存成reg文件后执行即可。
上一篇: springboot调用存储过程