新建文本文件.txt,把以下代码复制进去,把所有的路径,改成你计算机vscode的路径,一定要是双反斜线 \\?。
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\""
?
然后把文件名改成.reg,不用任何前缀,双击运行,就可以添加进去了。
?
|