Skip to content

Instantly share code, notes, and snippets.

@brccabral
Last active March 22, 2023 15:09
Show Gist options
  • Save brccabral/870b1b0849d18168df59763d1634ced7 to your computer and use it in GitHub Desktop.
Save brccabral/870b1b0849d18168df59763d1634ced7 to your computer and use it in GitHub Desktop.
Add Windows Explorer context Menu

Add Windows Explorer context Menu

Windows Registry Editor Version 5.00
; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code"
"Icon"="%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"%LocalAppData%\\Programs\\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 in VS Code"
"Icon"="\"%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"%LocalAppData%\\Programs\\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 in VS Code"
"Icon"="\"%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
; Open files [HKEY_CLASSES_ROOT\*\shell\Open in Terminal] @="Open in Terminal"
"Icon"="C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open in Terminal\command]
@="\"C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe\" wt -d \"%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\Terminal]
@="Open in Terminal"
"Icon"="\"C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\Terminal\command]
@="\"C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe\" wt -d \"%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\Terminal]
@="Open in Terminal"
"Icon"="\"C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal\command]
@="\"C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_xxx\\wt.exe\" wt -d \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment