首先在页面上新建个文本文件,然后改名和后缀为 add.reg
然后把下面的代码放到里面去,修改路径,然后直接运行就可以了
(路径就是vscode安装的目录)

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"C:\\Program Files (x86)\\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 (x86)\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"C:\\Program Files (x86)\\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 (x86)\\Microsoft VS Code\\Code.exe"

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

相关文章:

  • 2022-12-23
  • 2021-08-21
  • 2021-11-23
  • 2021-10-26
  • 2021-08-21
  • 2022-01-30
  • 2021-07-05
猜你喜欢
  • 2021-07-09
  • 2019-09-22
  • 2021-12-05
  • 2021-06-14
  • 2021-08-10
相关资源
相似解决方案