美文网首页
vs code添加open with code功能,实现右键打开

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

作者: 我是何宝荣呀 | 来源:发表于2019-10-25 18:59 被阅读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打开文件夹的显示啦~~~

相关文章

网友评论

      本文标题:vs code添加open with code功能,实现右键打开

      本文链接:https://www.haomeiwen.com/subject/hidevctx.html