Windows右键添加用 VSCODE 打开

1.安装VSCODE时

安装时会有个选项来添加,如下:

①将"通过code 打开"操作添加到windows资源管理器文件上下文菜单

②将"通过code 打开"操作添加到windows资源管理器目录上下文菜单

说明:①②勾选上,可以对文件,目录点击鼠标右键,选择使用 VScode 打开。

2.修改注册表

安装时未勾选,可以把下面代码中程序路径改为自己的,保存为对应的 vscode.reg 文件,双击即可

bash 复制代码
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\anzhuang\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\anzhuang\\Microsoft VS Code\\Code.exe\" \"%1\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\anzhuang\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\anzhuang\\Microsoft VS Code\\Code.exe\" \"%V\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\anzhuang\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\anzhuang\\Microsoft VS Code\\Code.exe\" \"%V\""
相关推荐
pink大呲花5 分钟前
设置右键打开VSCode
ide·vscode·编辑器
界面开发小八哥2 小时前
「Java EE开发指南」如何使用MyEclipse的可视化JSF编辑器设计JSP?(一)
java·ide·java-ee·开发工具·myeclipse
水饺编程2 小时前
Visual Studio 技能:调整软件界面布局
ide·visual studio
春蕾夏荷_7282977252 小时前
vscode 使用gitcode团队管理项目
vscode·gitcode
ZXF-BW3 小时前
联想笔记本电脑在Windows下通过联想驱动实现风扇控制
windows·电脑·联想·风扇
gu203 小时前
怎样将visual studio 2015开发的项目 保存为2010版本使用
ide·visual studio
学渣676563 小时前
【Jupyter 启动时如何指定目录】
ide·python·jupyter
csdn_aspnet4 小时前
如何在 Windows 10 中使用 WSL 和 Debian 安装 Postgresql 和 Postgis
windows·postgresql·debian
九鼎科技-Leo5 小时前
写windows服务日志-.net4.5.2-定时修改数据库中某些参数
数据库·windows·.net
fen_fen13 小时前
Python3:Jupyter Notebook 安装和配置
ide·python·jupyter