鼠标右键添加使用VSCode打开的快捷方式

2020-11-10  本文已影响0人  Codifier

新建一个txt文件,然后复制如下代码:

Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\*\shell\VSCode]

@="Open with Code"

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



[HKEY_CLASSES_ROOT\*\shell\VSCode\command]

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



Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\Directory\shell\VSCode]

@="Open with Code"

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



[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]

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



Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]

@="Open with Code"

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



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

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

其中D:\\VSCode为我的VSCode的安装目录,替换为你本机的即可,然后将这个txt文本的后缀修改为reg注册表文件,完成后直接双击运行,导入到注册表即可,此时在文件夹上右击就能看见使用VSCode打开的快捷键:

上一篇下一篇

猜你喜欢

热点阅读