經(jīng)典右鍵菜單
打開Windows Terminal(管理員) 輸入
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
win+E打開資源管理器
Ctrl+Shift+Esc 重啟資源管理器
右鍵菜單加入vscode
- 新建 vscode.reg 文件
- 加入以下內(nèi)容(vscode路徑替換為自己安裝路徑)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="C:\\Users\\vscode\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"C:\\Users\\vscode\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]="open with Code”
@="Open with Code"
"Icon"="C:\\Users\\vscode\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"C:\\Users\\vscode\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="C:\\Users\\vscode\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"C:\\Users\\vscode\\Code.exe\" \"%V\""
- 雙擊運(yùn)行后重啟資源管理器