Skip to content

Instantly share code, notes, and snippets.

@patelnwd
Created May 1, 2020 10:24
Show Gist options
  • Save patelnwd/1e8ebff154c69761ab5461bfa09a7ac9 to your computer and use it in GitHub Desktop.
Save patelnwd/1e8ebff154c69761ab5461bfa09a7ac9 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
; This will handle right clicking on a file
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files (x86)\\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:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\Program Files (x86)\\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:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment