Skip to content

Instantly share code, notes, and snippets.

@inialdan
Created April 23, 2021 13:07
Show Gist options
  • Save inialdan/7013b1a002868fe873b4e984a4f78436 to your computer and use it in GitHub Desktop.
Save inialdan/7013b1a002868fe873b4e984a4f78436 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will handle right clicking on a folder and open that folder
; as a new project
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""
; This handles the case of right clicking inside of a folder
; to open that folder as a new project
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\{ChangeWithYourUser}\\proje\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment