vscode添加到右键菜单,win10系统

1、新建文件test.reg,(名字可以随便取,后缀得是reg)
2、复制一下代码,到文件中
3、替换“D:\\software\\Microsoft VS Code”为自己的安装目录【注意:路径分割是双\\,如果你是从资源管理器中复制的地址的话是但个\,会出错】,转义
4、保存退出
5、双击文件图标,运行就可以了
 
Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\*\shell\VSCode]

@="Open with Code"

"Icon"="D:\\software\\Microsoft VS Code\\Code.exe"



[HKEY_CLASSES_ROOT\*\shell\VSCode\command]

@="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%1\""



Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\Directory\shell\VSCode]

@="Open with Code"

"Icon"="D:\\software\\Microsoft VS Code\\Code.exe"



[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]

@="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%V\""



Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]

@="Open with Code"

"Icon"="D:\\software\\Microsoft VS Code\\Code.exe"



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

@="\"D:\\software\\Microsoft VS Code\\Code.exe\" \"%V\""

转载:https://www.cnblogs.com/dreamer-lin/p/13376311.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2022-01-10
  • 2021-09-05
  • 2021-06-12
  • 2021-12-14
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-07-31
  • 2021-07-03
  • 2021-12-24
  • 2021-10-18
  • 2021-06-07
相关资源
相似解决方案