最近公司给电脑加了域,管理员权限没了,一堆东西都要重新配置,特别是右键菜单的使用vscode打开没有了,很不方便,重装vscode也没有权限,只能修改注册表了
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CURRENT_USER\Software\Classes\*\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
新建code.reg文件,复制上述代码并将code.exe路径修改为实际路径,保存后双击打开即可。该注册表仅对当前用户有效,所以无需管理员权限