美文网首页工具篇-常用软件
添加Open with WebStorm到windows右键

添加Open with WebStorm到windows右键

作者: nico1988 | 来源:发表于2019-12-08 11:21 被阅读0次

    任何位置新建脚本文件WebStorm.cmd,输入以下内容保存(前面新建的文件用文本编辑器打开)

    注意修改为你自己的的webstorm64.exe地址

    @echo off
    
    :: 修改以下地址为你的webstorm64.exe
    SET WebStormPath=D:\JetBrains\toolbox\apps\WebStorm\ch-0\192.7142.35\bin\webstorm64.exe
     
    echo Adding file entries
    @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm"   /f
    @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
    @reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
     
    echo Adding within a folder entries
    @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm"   /f
    @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
    @reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%V\"" /f
    
    echo Adding folder entries
    @reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm"   /f
    @reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
    @reg add "HKEY_CLASSES_ROOT\Directory\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
    
    pause
    

    右键单击该脚本,以管理员身份运行(否则会报错,没有权限)

    image.png

    enjoy coding……

    image.png

    相关文章

      网友评论

        本文标题:添加Open with WebStorm到windows右键

        本文链接:https://www.haomeiwen.com/subject/xkcmgctx.html