在右键菜单中添加Visual Studio Code
Win10 在右键菜单中添加Visual Studio Code
Win+R,输入regedit,打开注册表。
- 导航到
HKEY_CLASSES_ROOT\Directory\shell。
- 新建项,可命名为
VS Code,可将其(默认)数值的数据改为Open VS Code here。 - 选择
VS Code项,新建字符串值,命名为Icon,数据改为E:\Program Files\Microsoft VS Code\resources\app\extensions\microsoft-authentication\media\favicon.ico,其为VS Code图标路径。 - 在
VS Code项下,新建command项,修改其(默认)数值的数据为"E:\Program Files\Microsoft VS Code\Code.exe" "%V"。%V代表当前右键单击的路径 - 导航到
HKEY_CLASSES_ROOT\Directory\Background\shell,同上修改。
在右键菜单中添加Visual Studio Code
https://shana-wen.github.io/2025/12/20/2025-12-20-vscode-directory/