建立一个注册表文件,  以xxx.reg 命名,然后将 以一下内容写入到文件内.  实际路径要以安装目录一致. 写好之后双击打开即可

 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""

相关文章:

  • 2021-12-04
  • 2021-09-29
  • 2021-09-21
  • 2021-05-10
  • 2021-04-09
  • 2021-04-28
  • 2021-09-18
  • 2021-07-15
猜你喜欢
  • 2021-04-09
  • 2021-12-31
  • 2021-10-19
  • 2021-11-07
  • 2021-04-11
  • 2021-07-28
相关资源
相似解决方案