vs code添加open with code功能,实现右键打开

2019-10-25  本文已影响0人  我是何宝荣呀

参考链接:https://blog.csdn.net/qq_37810453/article/details/88101745
为文件夹添加open with vs code的功能
注册表的代码,我的文件命名为“Open File With VS code.reg”,不管是什么名字都可以,但是后缀要是reg
对了,下面的vscode的路径要是你自己本机的vscode的路径,要记得改

image.png
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\Microsoft VS Code\\Code.exe"


[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
    
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Program Files\\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 Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""

生成的reg文件要去点击他,让他生成注册信息


image.png

等待他生成完毕之后再去文件夹那边右键就会有用vscode打开文件夹的显示啦~~~

上一篇 下一篇

猜你喜欢

热点阅读