some reg 右键菜单

vsCodeOpenFolder.reg 文件

from http://blog.csdn.net/u010019717/article/details/52012993

Windows Registry Editor Version 5.00   

; Open files   
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]   
@="Edit with VS Code"   
"Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"   

[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]   
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""   

; This will make it appear when you right click ON a folder   
; The "Icon" line can be removed if you don't want the icon to appear   

[HKEY_CLASSES_ROOT\Directory\shell\vscode]   
@="Open Folder as VS Code Project"   
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"   

[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]   
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""   


; This will make it appear when you right click INSIDE a folder   
; The "Icon" line can be removed if you don't want the icon to appear   

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]   
@="Open Folder as VS Code Project"   
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"   

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]   
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\""   

注意 VSCODE的安装路径这里使用的是默认的 C:\Program Files (x86)\Microsoft VS Code\ 你要换成你安装的路径才对。

然后双击这个文件就行了, 如果有问题就以管理员的身份运行。
然后就可以使用了。

之前做过类似的内容, 就是为Unity引擎扩展右键菜单。

Windows Registry Editor Version 5.00  

[HKEY_CLASSES_ROOT\Folder\shell\Unity5]  
@=""  
"Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe"  
"MUIVerb"="Open as Unity Project"  

[HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command]  
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\""  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章