本篇文章给大家介绍一下Win10系统下配置VSCode,将VSCode添加到右键功能菜单中的方法,希望对大家有所帮助!

最近在使用 VSCode
时发现电脑上打开不方便,比如文件夹无法右键用 VSCode
打开,非常不方便,于是配置一下将 VSCode
添加至右键菜单【空白处右键,文件夹右键,文件右键】。【推荐学习:《vscode教程》】
教程
配置
下面为3种配置,可根据需要选择
(一)空白处右键菜单里显示“Open with Code”
1 2 3 4 5 6 7 8 | Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@= "Open with Code"
"Icon" = "C:\\Program Files\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@= "\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\"" 复制代码
|
登录后复制
(二)选中文件右键菜单里显示“Open with Code”
1 2 3 4 5 6 7 8 | Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@= "Open with Code"
"Icon" = "C:\\Program Files\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@= "\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\"" 复制代码
|
登录后复制
(三)选中文件夹右键菜单里显示“Open with Code”
1 2 3 4 5 6 7 8 | Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@= "Open with Code"
"Icon" = "C:\\Program Files\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@= "\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\"" 复制代码
|
登录后复制
更多编程相关知识,请访问:编程视频!!
以上是Win10系统下怎么将VSCode配置到右键菜单中的详细内容。更多信息请关注PHP中文网其他相关文章!