VSCODE快速添加到鼠标右键菜单
程序员文章站
2024-01-06 14:10:40
...
- 创建一个文件夹1.reg,以reg,任意文件名即可。
- 查看自己的VSCODE安装路径,我的Code.exe路径为
D:\\Program\\Microsoft VS Code\\Code.exe
- 将下列代码复制粘贴到
reg
文件中,并且将目录替换为你自己的路径。 - 执行即可增加入注册表。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Program\\Microsoft VS Code\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Program\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Program\\Microsoft VS Code\\Code.exe\" \"%V\""