-
Notifications
You must be signed in to change notification settings - Fork 1
/
OpenWithVSCode.reg
31 lines (23 loc) · 1.01 KB
/
OpenWithVSCode.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Windows Registry Editor Version 5.00
; WARNING: before run replace PATH_TO_APP with correct value
; Example: C:\\App
[HKEY_CLASSES_ROOT\*\shell\VSCode]
; Open files
@="Edit with &VS Code"
"Icon"="\"PATH_TO_APP\\Code.exe\",0"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"PATH_TO_APP\\Code.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
; 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
@="Open Folder as &VS Code WSpace"
"Icon"="\"PATH_TO_APP\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"PATH_TO_APP\\Code.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
; 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
@="Open Folder as &VS Code WSpace"
"Icon"="\"PATH_TO_APP\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"PATH_TO_APP\\Code.exe\" \"%V\""