sublime text3添加右鍵打開文件文件夾的操作


方法一(推薦)
把以下代碼,復制到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,"Directory\shell\SublimeText3",,,"用 SublimeText3 打開"
hkcr,"
\shell\SublimeText3","Icon",0x20000,"%1%\sublime_text.exe, 0"
hkcr,"Directory\shell\SublimeText3\command",,,"""%1%\sublime_text.exe"" ""%%1"""

方法二
把以下代碼,復制到SublimeText3的安裝目錄,然后重命名為:sublime_addright.reg,然后雙擊就可以了。
PS:需要把里邊的Sublime的安裝目錄,替換成實際的Sublime安裝目錄。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*\shell\SublimeText3]
@="用 SublimeText3 打開"
"Icon"="D:\Program Files\Sublime Text 3\sublime_text.exe,0"

[HKEY_CLASSES_ROOT*\shell\SublimeText3\command]
@="D:\Program Files\Sublime Text 3\sublime_text.exe %1"

[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3]
@="用 SublimeText3 打開"
"Icon"="D:\Program Files\Sublime Text 3\sublime_text.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3\command]
@="D:\Program Files\Sublime Text 3\sublime_text.exe %1"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM