将vscode添加到右键注册表脚本

Scroll Down
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\VSCode]

@="Open with Code"

"Icon"="C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"

 

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]

@="\"C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""

     

Windows Registry Editor Version 5.00

 

[HKEY_CLASSES_ROOT\Directory\shell\VSCode]

@="Open with Code"

"Icon"="C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"

 

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]

@="\"C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""

 

Windows Registry Editor Version 5.00

 

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]

@="Open with Code"

"Icon"="C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"

 

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]

@="\"C:\\Users\\cmc\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""

命令文件链接