sublime_text3添加右键菜单与下载

中文全插件版下载

链接:https://pan.baidu.com/s/1YeUY19Pimb-8UMid3EI_-g
提取码:07c9
复制这段内容后打开百度网盘手机App,操作更方便哦–来自百度网盘超级会员V4的分享

添加到右键菜单

方法1:下载上面版本,直接点击文件夹中,添加右键菜单的bat即可(出现安全拦截不用管)

《sublime_text3添加右键菜单与下载》

方法2:

安装目录下添加 添加右键.bat文件,将下文添加的代码粘贴到.bat文件里,再运行

添加

@ECHO OFF & PUSHD %~DP0 & TITLE
>NUL 2>&1 REG.exe query "HKU\S-1-5-19" || (
    ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
    ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
    "%TEMP%\Getadmin.vbs"
    DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL
    Exit /b
)

reg add "HKEY_CLASSES_ROOT\*\shell\Sublime_Text_3"         /t REG_SZ /v "" /d "Edit with Sublime Text"   /f
reg add "HKEY_CLASSES_ROOT\*\shell\Sublime_Text_3"         /t REG_EXPAND_SZ /v "Icon" /d "%~dp0Sublime_Text.exe" /f
reg add "HKEY_CLASSES_ROOT\*\shell\Sublime_Text_3\command" /t REG_SZ /v "" /d "%~dp0Sublime_Text.exe ""%%1""" /f

exit

删除

@ECHO OFF & PUSHD %~DP0 & TITLE
>NUL 2>&1 REG.exe query "HKU\S-1-5-19" || (
    ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
    ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
    "%TEMP%\Getadmin.vbs"
    DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL
    Exit /b
)

reg delete "HKEY_CLASSES_ROOT\*\shell\Sublime_Text_3" /f

exit
    原文作者:流楚丶格念
    原文地址: https://blog.csdn.net/weixin_45525272/article/details/110008220
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞