VSCode添加到window右键菜单中

VSCode添加到windows右键菜单中


新建一个txt文档,编辑文档,在文档中粘贴下面代码:
保存,关闭文档;然后把创建的txt文档的扩展名由.txt更改为.reg文件。
然后双击这个文件,会弹出对话框,点“确定”。

Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with VSCode"
"Icon"="C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.ext\"
 
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""

Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with VSCode"
"Icon"="C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"
 
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
 
Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with VSCode"
"Icon"="C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.ex"
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"C:\\Users\\admin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""


posted @ 2025-08-12 16:53  王阳开  阅读(17)  评论(0)    收藏  举报