您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

怎么右键打开vscode

2024/6/4 18:25:56发布22次查看
怎么右键打开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的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product