文件夹右键菜单增加“用vscode打开”
作者:互联网
windows文件右键菜单增加“用vscode打开”
1.创建一个txt文本文件
2.编辑文件内容
复制一下内容至该txt文件中
我的位置是D:\\software\\vscode\\Microsoft VS Code\\Code.exe
更换成安卓vscode的位置即可,记得将\
更换为\\
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with VSCode"
"Icon"="D:\\software\\vscode\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\software\\vscode\\Microsoft VS Code\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with VSCode"
"Icon"="D:\\software\\vscode\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\software\\vscode\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with VSCode"
"Icon"="D:\\software\\vscode\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\software\\vscode\\Microsoft VS Code\\Code.exe\" \"%V\""
3.更改文件后缀
将文件后缀更改为.reg
4.双击该文件
完成,如果不成功检查是不是路径地址写错了
标签:Code,vscode,VS,VSCode,文件夹,右键,Microsoft,exe 来源: https://www.cnblogs.com/ommggg/p/16620079.html