some reg 右键菜单

来源:互联网 发布:淘宝模特摆拍技巧 编辑:程序博客网 时间:2024/05/21 11:06

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\""