Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\VSCode] @="Open with Code" "Icon"="D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe" [HKEY_CLASSES_ROOT\*\shell\VSCode\command] @="\"D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe\" \"%1\"" Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\VSCode] @="Open with Code" "Icon"="D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe" [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command] @="\"D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe\" \"%V\"" Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode] @="Open with Code" "Icon"="D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command] @="\"D:\\MySoft\\VsCode\\Microsoft VS Code\\Microsoft VS Code\\Code.exe\" \"%V\""
新建一個text文件,重命名為123.reg
把上面注冊列表信息復制進來,然后放在vscode安裝的路徑下
放在和當前文件相同的文件夾下
注意修改123.reg中所有文件路徑(每個人vscode安裝的路徑是不一樣的)
然后雙擊,“確定” 把注冊列表添加即可。