Windows Registry Editor Version 5.00
; 请使用ANSI编码保存
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] ;*代表所有文件,如果把*改成想就的后缀名(.exe),则只处理这一类文件.
@="Edit with VS Code" ;右键菜单中显示的文字
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0" ;右键菜单中显示的图样
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\"" ;调用哪一个程序,%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] ;Directory表示目录
@="Open Folder as VS Code Project" ;右键菜单中显示的文字
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\",0" ;右键菜单中显示的图样
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\"" ;调用哪一个程序,%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 Folder as VS Code Project"
"Icon"="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""
05-14
528
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-01
6672
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)