Home > Development Tools > VSCode > body text

How to configure VSCode into the right-click menu under Win10 system

青灯夜游
Release: 2021-11-12 11:22:43
forward
2838 people have browsed it

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

How to configure VSCode into the right-click menu under Win10 system

最近在使用 VSCode 时发现电脑上打开不方便,比如文件夹无法右键用 VSCode 打开,非常不方便,于是配置一下将 VSCode 添加至右键菜单【空白处右键,文件夹右键,文件右键】。【推荐学习:《vscode教程》】

教程

  • 新建一个后缀是 .reg 的文件,例如: vs.reg

  • 用记事本或 Notepad++ 打开上述 .reg 文件,按照自己的需要将下面的代码复制粘贴到 .reg 文件中,然后根据自己 VSCode 的安装目录修改路径,保存后双击运行即可

配置

下面为3种配置,可根据需要选择

(一)空白处右键菜单里显示“Open with Code”

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\""复制代码
Copy after login

(二)选中文件右键菜单里显示“Open with Code”

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\""复制代码
Copy after login

(三)选中文件夹右键菜单里显示“Open with Code”

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\""复制代码
Copy after login

更多编程相关知识,请访问:编程视频!!

The above is the detailed content of How to configure VSCode into the right-click menu under Win10 system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:juejin.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!