vscode 右键打开

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT*shellVSCode]
@="Open with Code"
"Icon"="D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe"

[HKEY_CLASSES_ROOT*shellVSCodecommand]
@=""D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe" "%1""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellVSCode]
@="Open with Code"
"Icon"="D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe"

[HKEY_CLASSES_ROOTDirectoryshellVSCodecommand]
@=""D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe" "%V""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryBackgroundshellVSCode]
@="Open with Code"
"Icon"="D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellVSCodecommand]
@=""D:\MySoft\VsCode\Microsoft VS Code\Microsoft VS Code\Code.exe" "%V""

  新建一个text文件,重命名为123.reg

把上面注册列表信息复制进来,然后放在vscode安装的路径下

放在和当前文件相同的文件夹下

注意修改123.reg中所有文件路径(每个人vscode安装的路径是不一样的)

然后双击,“确定” 把注册列表添加即可。

原文地址:https://www.cnblogs.com/myloveblogs/p/10899370.html