# 添加檔案總管點右鍵 "以 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` 進到該機碼中  如果沒有 shell 這個機碼,可以在 Background 這邊點右鍵新增:  #### 3. 在 shell 這邊創建機碼給 Git Bash / VS Code (名字不重要)  #### 4. 在右畫面中編輯預設值,輸入自己想要看到的名稱  檔案總管中會顯示 "Git Bash here"  #### 5. 接著在 GitBash 底下再新增 Command 機碼,修改預設值為 `git-bash.exe` 的路徑  到這邊會發現一個嚴重的問題!沒有 Icon!!!給我好看的 Git Bash Icon!!! #### 6. 回到 GitBash 機碼層,我們新增一個字串值叫 "Icon",注意一定要叫 Icon 才會顯示成功  #### 這樣就完成了!!! 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up