vscode 右鍵文件或者文件夾顯示菜單


1.這個是可以在安裝時直接選擇顯示的,如果跟我一樣沒有選也不願意重新安裝的,可以復制下面代碼保存為vsCodeOpenFolder.reg,紅色部分是vscode安裝路徑,換成自己本地路徑即可。

雙擊運行就可以完成。

Windows Registry Editor Version 5.00   
   
; Open files   
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]   
@="Edit with VS Code"   
"Icon"="D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"   
   
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]   
@="\"D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""   
   
; This will make it appear when you right click ON a folder   
; The "Icon" line can be removed if you don't want the icon to appear   
   
[HKEY_CLASSES_ROOT\Directory\shell\vscode]   
@="Open Folder as VS Code Project"   
"Icon"="\"D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"   
   
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]   
@="\"D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""   
   
   
; This will make it appear when you right click INSIDE a folder   
; The "Icon" line can be removed if you don't want the icon to appear   
   
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]   
@="Open Folder as VS Code Project"   
"Icon"="\"D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"   
   
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]   
@="\"D:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\""   

 

有下面提示可以忽略,直接是,繼續執行即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM