0%

增加右键VsCode

Windows 中右键菜单增加进入VsCode项目

新建一个 .reg 文件
输入以下内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="使用 VSCode 打开"
"Icon"="D:\\VSCode\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"D:\\VSCode\\Code.exe\" \"%v.\""

[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="使用 VSCode 打开"
"Icon"="D:\\VSCode\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"D:\\VSCode\\Code.exe\" \"%v.\""

D:\VSCode\Code.exe 替换为你的目录

执行(双击)新建的 .reg 文件,弹出对话框选“是”。