Visual Studio Code 安装时未勾选鼠标右键的快捷打开方式的解决方案

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"E:\\Microsoft VS Code\\Code.exe\" \"%1\""

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"E:\\Microsoft VS Code\\Code.exe\" \"%V\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="E:\\Microsoft VS Code\\Code.exe"

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

---------------------------------------------------分界线------------------------------------------------------------------------------

复制分界线往上的信息,在windows内新建文本文件保存且把后缀的.txt 改为.bat 文件。

执行注册表文件,再看下鼠标右键有没有open with code 的选项了

 

记录以下,日常遇到的问题。

 

posted @ 2020-05-27 22:40  zhoushunchang  阅读(1267)  评论(0编辑  收藏  举报