1.新建名为 vscode.reg 的文件。
2.写入下面内容保存双击

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\""

注意:配置好后,右键打开vscode后,如果工具栏图标显示错误,可修改上面的"Icon"="D:\\Microsoft VS Code\\Code.exe" 地址

相关文章:

  • 2021-10-01
  • 2021-07-03
  • 2021-08-06
  • 2021-10-16
  • 2021-07-15
  • 2021-12-30
  • 2021-09-13
猜你喜欢
  • 2021-12-17
  • 2021-10-01
  • 2022-01-31
  • 2021-10-11
  • 2021-04-28
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案