加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

鼠标右键vsCode打开

发布时间:2020-12-14 02:39:43 所属栏目:Windows 来源:网络整理
导读:有时候在安装vscode不会出现鼠标右键用vscode打开的情况: 最终要实现的样子: ? 解决办法如下步骤: 1.安装vscode; 2.新建一个“.reg”为后缀的文件; 3.把下面内容复制到文件中; Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT*

有时候在安装vscode不会出现鼠标右键用vscode打开的情况:

最终要实现的样子:

?

解决办法如下步骤:

1.安装vscode;

2.新建一个“.reg”为后缀的文件;

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_ROOTDirectoryshellvscode]
@="Open Folder as VS Code Project"
"Icon"=""D:Microsoft VS CodeCode.exe",0"

[HKEY_CLASSES_ROOTDirectoryshellvscodecommand]
@=""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_ROOTDirectoryBackgroundshellvscode]
@="Open Folder as VS Code Project"
"Icon"=""D:Microsoft VS CodeCode.exe",0"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
@=""D:Microsoft VS CodeCode.exe" "%V""
D:Microsoft VS CodeCode.exe,0"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
@=""D:Microsoft VS CodeCode.exe" "%V""

4.把"D:Microsoft VS CodeCode.exe"换成安装vscode的路径

5.把文件名后缀为.reg的文件放到安装vscode的与vscode.exe同级的文件夹中;

6.双击文件名后缀为.reg的文件,弹出询问是否注册,点击确定;

7.回到桌面,鼠标右键检查是否出现上面图片的样子;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读