
怎么右键打开vscode?
鼠标右键vsCode打开
有时候在安装vscode不会出现鼠标右键用vscode打开的情况:
相关推荐:vscode教程
最终要实现的样子:

解决办法如下步骤:
1.安装vscode;
2.新建一个“.reg”为后缀的文件;
Visual Studio 2010使用方法 WORD文档 doc格式
Visual Studio 2010使用方法 1 打开界面点击 文件—新建—项目 弹出新建项目界面,左边选择Visual C++,在右边选择空项目,然后在下面输入名称,存储位置,最后单击确定。之后会弹出界面(解决方案资源管理器)然后选择头文件,或源文件,单击右键—添加—新建项目 弹出 添加新项界面 左边 选择代码,右边选择 C++ 文件, 底部 输入名称,单击确定,之后会弹出新的界面,就可以编写
0 查看详情
3.把下面内容复制到文件中;
Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT*shellOpen with VS Code] @="Edit with VS Code" "Icon"="D:Microsoft VS CodeCode.exe,0" [HKEY_CLASSES_ROOT*shellOpen with VS Codecommand] @=""D:Microsoft VS CodeCode.exe" "%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_ROOTDirectoryshellscode] @="Open with VSCode" "Icon"=""D:Microsoft VS CodeCode.exe",0" [HKEY_CLASSES_ROOTDirectoryshellscodecommand] @=""D:Microsoft VS CodeCode.exe" "%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_ROOTDirectoryBackgroundshellscode] @="Open with VSCode" "Icon"=""D:Microsoft VS CodeCode.exe",0" [HKEY_CLASSES_ROOTDirectoryBackgroundshellscodecommand] @=""D:Microsoft VS CodeCode.exe" "%V""D:Microsoft VS CodeCode.exe,0" [HKEY_CLASSES_ROOT*shellOpen with VS Codecommand] @=""D:Microsoft VS CodeCode.exe" "%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_ROOTDirectoryshellscode] @="Open with VSCode" "Icon"=""D:Microsoft VS CodeCode.exe",0" [HKEY_CLASSES_ROOTDirectoryshellscodecommand] @=""D:Microsoft VS CodeCode.exe" "%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_ROOTDirectoryBackgroundshellscode] @="Open with VSCode" "Icon"=""D:Microsoft VS CodeCode.exe",0" [HKEY_CLASSES_ROOTDirectoryBackgroundshellscodecommand] @=""D:Microsoft VS CodeCode.exe" "%V""
4.把”D:Microsoft VS CodeCode.exe”换成安装vscode的路径
5.把文件名后缀为.reg的文件放到安装vscode的与vscode.exe同级的文件夹中;
6.双击文件名后缀为.reg的文件,弹出询问是否注册,点击确定;
7.回到桌面,鼠标右键检查是否出现上面图片的样子;
以上就是怎么右键打开vscode的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/738332.html
微信扫一扫
支付宝扫一扫