# 添加檔案總管點右鍵 "以 Git Bash / VS Code 開啟" > Ref: [Stack Overflow](https://stackoverflow.com/questions/24386657/how-to-add-a-open-git-bash-here-context-menu-to-the-windows-explorer/39194769#39194769?newreg=fe78eaa8d2fa4418a2b8fa96e74e8c42) 應該是更新到 Windows 11 後,發現在檔案總管中點右鍵沒有了「以 Git Bash / Code 開啟」(或是其他的詞,但大概是這樣?),上網查遍後終於找到 Stack Overflow 的解法,記錄在這邊方便查詢。 以下以 Git Bash 為例,其他程式應該都適用~ #### 1. 在工具列搜尋 "regedit" 或 "登錄編輯程式" #### 2. 在畫面最上排輸入 `HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell` 進到該機碼中 ![](https://i.imgur.com/DMtSyNE.png =80%x) 如果沒有 shell 這個機碼,可以在 Background 這邊點右鍵新增: ![](https://i.imgur.com/NIOzwSE.png =90%x) #### 3. 在 shell 這邊創建機碼給 Git Bash / VS Code (名字不重要) ![](https://i.imgur.com/fhoB5rA.png =90%x) #### 4. 在右畫面中編輯預設值,輸入自己想要看到的名稱 ![](https://i.imgur.com/a0iohp0.png =90%x) 檔案總管中會顯示 "Git Bash here" ![](https://i.imgur.com/VRXVjPi.png =70%x) #### 5. 接著在 GitBash 底下再新增 Command 機碼,修改預設值為 `git-bash.exe` 的路徑 ![](https://i.imgur.com/quqztT9.png) 到這邊會發現一個嚴重的問題!沒有 Icon!!!給我好看的 Git Bash Icon!!! #### 6. 回到 GitBash 機碼層,我們新增一個字串值叫 "Icon",注意一定要叫 Icon 才會顯示成功 ![](https://i.imgur.com/R3AW0yu.png) #### 這樣就完成了!!! ![](https://i.imgur.com/mHo2TN5.png =70%x)