您当前的位置: 首页 >  vscode

Xavier Jiezou

暂无认证

  • 0浏览

    0关注

    394博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

如何将VSCode添加至右键菜单

Xavier Jiezou 发布时间:2021-05-12 15:27:02 ,浏览量:0

引言

安装VSCode的时候,如果你没有勾选下面这两项,那么右键菜单就没有VSCode,但你又特别想要怎么办?最简单的方法就是卸载重装,要不你就通过注册表将VSCode添加到右键菜单,注册表添加教程如下。 在这里插入图片描述

教程

1、新建vscode.reg文件,并写入以下内容

Windows Registry Editor Version 5.00

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

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

Windows Registry Editor Version 5.00

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

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

Windows Registry Editor Version 5.00

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

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

2、Ctrl+H将D:\\Program Files\\Microsoft VS Code\\Code.exe替换你电脑上VSCode的安装路径 在这里插入图片描述

3、双击运行并选择是 在这里插入图片描述

测试

1、桌面空白处右击正常显示VSCode菜单 在这里插入图片描述 2、文件(比如一张图片)上右击正常显示VSCode菜单 在这里插入图片描述 3、文件夹上右击正常显示VSCode菜单 在这里插入图片描述

转载

https://www.cnblogs.com/jswl/p/9935998.html

关注
打赏
1661408149
查看更多评论
立即登录/注册

微信扫码登录

0.0360s