当前位置:网站首页>修复鼠标右键没有vscode快捷入口的问题
修复鼠标右键没有vscode快捷入口的问题
2022-06-11 06:09:00 【空巢青年_rui】
修复鼠标右键没有vscode快捷入口的问题
问题描述:
如果在安装vscode时忽略了将vscode添加到资源管理器的上下文菜单,那么在使用鼠标右键时无法快速通过vscode打开文件或文件夹。这是除了重新安装vscode之外,还可以通过在注册表中添加注册项实现添加右键快捷操作。
解决方法:
通过Code打开一共有三种场景:
- 右键文件夹,可以使用vscode打开
- 右键单文件,可以使用vscode进行编辑
- 右键空白处,可以使用vscode打开
这分别对应三个注册表项,在桌面创建一个文本文件,随意取名,创建后将后缀改写为.reg。
然后右键该文件,选择“编辑”打开文件,将以下内容粘贴进去:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Edit with VS Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with VS Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with VS Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
注意:需要修改文件路径为你本机vscode的安装路径,可以通过vscode快捷方式的属性进行查看。同时要将复制路径中的 单个 \ 改为双 \\ 。
编辑完成后,保存文件,在文件上右键执行“合并”操作,将该注册表文件合并到本机的注册表中。
此时右键查看就可以看到vscode的快捷入口了。
注册项语句说明:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode] ;右击文件时弹出的菜单
@="Edit with VS Code" ;显示的文字
"Icon"="D:\\Microsoft VS Code\\Code.exe" ;显示的图标
[HKEY_CLASSES_ROOT\*\shell\VSCode\command] ;要执行的命令
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\"" ;具体的命令代码,%1代表第一个参数,即右击选中的那个文件的路径
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode] ;右击文件夹时弹出的菜单
@="Open with VS Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\"" ;%V意思同%1,只不过在路径为空时替换为当前工作路径
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode] ;右击文件夹空白处时弹出的菜单
@="Open with VS Code"
"Icon"="D:\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
边栏推荐
- [reading this article is enough!!! Easy to understand] confidence level understanding (95% confidence level and confidence interval)
- Human gene editing technology and ethical issues behind it [personal view, for reference only]
- FPGA面試題目筆記(四)—— 序列檢測器、跨時鐘域中的格雷碼、乒乓操作、降低靜動態損耗、定點化無損誤差、恢複時間和移除時間
- Build the first power cloud platform
- On the social moral and ethical issues behind short videos (personal point of view, for reference only)
- Don't be afraid of xxE vulnerabilities: understand their ferocity and detection methods
- Installing MySQL for Linux
- Distributed framework ray - detailed introduction to starting ray and connecting clusters
- Graphsage paper reading
- What do you need to know about Amazon evaluation?
猜你喜欢

Examinelistactivity of Shandong University project training

FPGA面试题目笔记(四)—— 序列检测器、跨时钟域中的格雷码、乒乓操作、降低静动态损耗、定点化无损误差、恢复时间和移除时间

verilog实现双目摄像头图像数据采集并modelsim仿真,最终matlab进行图像显示

Shandong University machine learning final 2021

Matlab实现均值滤波与FPGA进行对比,并采用modelsim波形仿真

Moteur de modèle de moteur thymeleaf

Cocoatouch framework and building application interface

FPGA设计——乒乓操作实现与modelsim仿真

FPGA面试题目笔记(三)——跨时钟域中握手信号同步的实现、任意分频、进制转换、RAM存储器等、原码反码和补码

Convert multiple pictures into one NPY file storage
随机推荐
FPGA面试题目笔记(四)—— 序列检测器、跨时钟域中的格雷码、乒乓操作、降低静动态损耗、定点化无损误差、恢复时间和移除时间
11. Gesture recognition
Markdown + typora + picgo experimental report template attached
What should the cross-border e-commerce evaluation team do?
Super details to teach you how to use Jenkins to realize automatic jar package deployment
Cenos7 builds redis-3.2.9 and integrates jedis
Jenkins voucher management
Docker installation of MySQL and redis
Convert multiple pictures into one NPY file storage
jenkins-凭证管理
Delegation agreement, data source agreement and advanced view in view
On the social moral and ethical issues behind short videos (personal point of view, for reference only)
Basic usage of MySQL
How to use perforce helix core with CI build server
SQLI_ LIBS range construction and 1-10get injection practice
Data quality: the core of data governance
[must see for game development] 3-step configuration p4ignore + wonderful Q & A analysis (reprinted from user articles)
Simple understanding of XML and JSON
Shandong University machine learning experiment 5 SVM
[IOS development interview] operating system learning notes