1、右键vscode点击属性
2、这是地址栏,一会复制即可
3、新建一个txt文件,将这个复制进去
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\""Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe\"[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe\"[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
4、修改txt文件,将这个地址修改为自己vscode地址
注意:D:\Microsoft VS Code\Code.exe
复制的地址为单斜杠,要改成双斜杠
5、将文档的后缀名改为 xxx.reg,双击运行文件,一直点击是,就设置成功了!
原创:超简单设置右键打开 vscode的方法_vscode 右键_逻辑刘大洋的博客-CSDN博客