Skip to content

Instantly share code, notes, and snippets.

@emeryao
Last active August 15, 2025 08:23
Show Gist options
  • Save emeryao/48c2237da40d6458e23a7cde9573fe61 to your computer and use it in GitHub Desktop.
Save emeryao/48c2237da40d6458e23a7cde9573fe61 to your computer and use it in GitHub Desktop.
open-with-vs-code-insiders-context-menu
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCodeInsiders]
@="Open with Code - Insiders"
"Icon"="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe"

[HKEY_CLASSES_ROOT\*\shell\VSCodeInsiders\command]
@="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe \"%1\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCodeInsiders]
@="Open with Code - Insiders"
"Icon"="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCodeInsiders\command]
@="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe \"%V\""

[HKEY_CLASSES_ROOT\Directory\shell\VSCodeInsiders]
@="Open with Code - Insiders"
"Icon"="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCodeInsiders\command]
@="C:\\Users\\<USERNAME>\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe \"%V\""

  • replace the <USERNAME> with you own or use the correct executable full path
  • save it to a file with encoding: UTF-16 LE eol: CRLF file extension: .reg
  • merge the reg file to registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment