• sublime text3添加右键打开的操作


    前一段重新安装了Sublime Text3,不过一直不在右键菜单中,所以决定添加,有如下2种方法。

    方法一(推荐)、

    把以下代码,复制到SublimeText3的安装目录,然后重命名为:sublime_addright.inf,然后右击安装就可以了。

    PS:重命名文件之前,需要先在工具--文件夹选项,查看中,把隐藏已知文件类型的扩展名前边的复选框不勾选。

    [Version]
    Signature="$Windows NT$"
    
    [DefaultInstall]
    AddReg=SublimeText3
    
    [SublimeText3]
    hkcr,"*\shell\SublimeText3",,,"用 SublimeText3 打开"
    hkcr,"*\shell\SublimeText3\command",,,"""%1%sublime_text.exe"" ""%%1"" %%*"
    hkcr,"DirectoryshellSublimeText3",,,"用 SublimeText3 打开"
    hkcr,"*\shell\SublimeText3","Icon",0x20000,"%1%sublime_text.exe, 0"
    hkcr,"DirectoryshellSublimeText3command",,,"""%1%sublime_text.exe"" ""%%1"""

    方法二、

    把以下代码,复制到SublimeText3的安装目录,然后重命名为:sublime_addright.reg,然后双击就可以了。

    PS:需要把里边的Sublime的安装目录,替换成实际的Sublime安装目录。

    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT*shellSublimeText3]
    @="用 SublimeText3 打开"
    "Icon"="D:\Program Files\Sublime Text 3\sublime_text.exe,0"
    
    [HKEY_CLASSES_ROOT*shellSublimeText3command]
    @="D:\Program Files\Sublime Text 3\sublime_text.exe %1"
    
    
    [HKEY_CLASSES_ROOTDirectoryshellSublimeText3]
    @="用 SublimeText3 打开"
    "Icon"="D:\Program Files\Sublime Text 3\sublime_text.exe,0"
    
    [HKEY_CLASSES_ROOTDirectoryshellSublimeText3command]
    @="D:\Program Files\Sublime Text 3\sublime_text.exe %1"

    最后,附一个删除右键菜单的脚本吧。

    把以下代码,复制到SublimeText3的安装目录,然后重命名为:sublime_delright.reg,然后双击就可以了。

    Windows Registry Editor Version 5.00
    [-HKEY_CLASSES_ROOT*shellSublimeText3]
    [-HKEY_CLASSES_ROOTDirectoryshellSublimeText3]




    参考:http://blog.csdn.net/tsingsn/article/details/52183078
  • 相关阅读:
    [LeetCode] 714. Best Time to Buy and Sell Stock with Transaction Fee
    [LeetCode] 309. Best Time to Buy and Sell Stock with Cooldown
    [LeetCode] 1291. Sequential Digits
    [LeetCode] 188. Best Time to Buy and Sell Stock IV
    [LeetCode] 123. Best Time to Buy and Sell Stock III
    [LeetCode] 581. Shortest Unsorted Continuous Subarray
    [LeetCode] 1041. Robot Bounded In Circle
    [LeetCode] 1110. Delete Nodes And Return Forest
    [LeetCode] 421. Maximum XOR of Two Numbers in an Array
    [LeetCode] 1109. Corporate Flight Bookings
  • 原文地址:https://www.cnblogs.com/alinh/p/6588110.html
Copyright © 2020-2023  润新知