如何右键打开vscode-创新互联
这篇文章给大家分享的是有关如何右键打开vscode的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
成都创新互联是由多位在大型网络公司、广告设计公司的优秀设计人员和策划人员组成的一个具有丰富经验的团队,其中包括网站策划、网页美工、网站程序员、网页设计师、平面广告设计师、网络营销人员及形象策划。承接:成都网站制作、网站设计、网站改版、网页设计制作、网站建设与维护、网络推广、数据库开发,以高性价比制作企业网站、行业门户平台等全方位的服务。怎么右键打开vscode?
鼠标右键vsCode打开
有时候在安装vscode不会出现鼠标右键用vscode打开的情况:
相关推荐:vscode教程
最终要实现的样子:
解决办法如下步骤:
1.安装vscode;
2.新建一个“.reg”为后缀的文件;
3.把下面内容复制到文件中;
Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" "Icon"="D:\\Microsoft VS Code\\Code.exe,0" [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] @="\"D:\\Microsoft VS Code\\Code.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_ROOT\Directory\shell\vscode] @="Open with VSCode" "Icon"="\"D:\\Microsoft VS Code\\Code.exe\",0" [HKEY_CLASSES_ROOT\Directory\shell\vscode\command] @="\"D:\\Microsoft VS Code\\Code.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_ROOT\Directory\Background\shell\vscode] @="Open with VSCode" "Icon"="\"D:\\Microsoft VS Code\\Code.exe\",0" [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command] @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\"" D:\\Microsoft VS Code\\Code.exe,0" [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] @="\"D:\\Microsoft VS Code\\Code.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_ROOT\Directory\shell\vscode] @="Open with VSCode" "Icon"="\"D:\\Microsoft VS Code\\Code.exe\",0" [HKEY_CLASSES_ROOT\Directory\shell\vscode\command] @="\"D:\\Microsoft VS Code\\Code.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_ROOT\Directory\Background\shell\vscode] @="Open with VSCode" "Icon"="\"D:\\Microsoft VS Code\\Code.exe\",0" [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command] @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
4.把"D:\\Microsoft VS Code\\Code.exe\"换成安装vscode的路径
5.把文件名后缀为.reg的文件放到安装vscode的与vscode.exe同级的文件夹中;
6.双击文件名后缀为.reg的文件,弹出询问是否注册,点击确定;
7.回到桌面,鼠标右键检查是否出现上面图片的样子;
感谢各位的阅读!关于“如何右键打开vscode”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
本文名称:如何右键打开vscode-创新互联
链接URL:http://scjbc.cn/article/godij.html