zoukankan      html  css  js  c++  java
  • Open with Sublime 右键打开

    Open with Sublime

    Sublime 的右键打开没有了,可以使用下面的bat命令添加。

     

    @echo off

    SET st3Path=D:Program FilesSublime Textsublime_text.exe

     

    rem add it for all file types

    @reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f

    @reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f

    @reg add "HKEY_CLASSES_ROOT*shellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%1"" /f

     

    rem add it for folders

    @reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f

    @reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f

    @reg add "HKEY_CLASSES_ROOTDirectoryshellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%1"" /f

     

    rem add it for current folder

    @reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime" /f

    @reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f

    @reg add "HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen with Sublime Text 3command" /t REG_SZ /v "" /d "%st3Path% "%%v"" /f

     

    pause

     

    另存为,*.bat 文件,管理员运行,就行了。 删除的直接进入注册表删除文件夹就好了。注册表路径:HKEY_CLASSES_ROOT*shellSublimeText3command

     

     

    文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。

    __________________________________________________________________________________

    若有帮助到您,欢迎捐赠支持,您的支持是对我坚持最好的肯定(*^_^*)

  • 相关阅读:
    基本数据类型与其包装类型
    String与常量池(JDK1.8)
    数据库知识归纳(面试向)
    HashMap、ConcurrentHashMap以及HashTable(面试向)
    Java多线程基础(面试向)
    Java的类加载
    Sql语句的一些事(二)
    RUBY惯用方法(转)
    Ruby中区分运行来源的方法(转)
    ruby安装devkit
  • 原文地址:https://www.cnblogs.com/lovebing/p/11750948.html
Copyright © 2011-2022 走看看