Add (Open With VSCode) Right-click shortcuts to portable vscode 添加用VSCode打开到右键菜单的方法

Add (Open With VSCode) Right-click shortcuts to portable vscode
增加(Open With VSCode)到鼠标右键菜单打开 VSCode

The following three functions are implemented:
  1. Right-click anywhere on the desktop or folder to open VSCode
  2. Right-click to open a folder with VSCode
  3. Right-click to open a specific file with VSCode
共实现以下三个功能:

1.在桌面或文件夹内任意位置点击鼠标右键打开VSCode

在桌面或文件夹内任意位置点击鼠标右键打开VSCode
2.点击鼠标右键用VSCode打开某个文件夹
点击鼠标右键用VSCode打开某个文件夹
3.点击鼠标右键用VSCode打开某个特定的文件
在这里插入图片描述

Steps:

Creat a txt file named-“Add (Open With VSCode) Right-click shortcuts to portable vscode”
Then,paste the following text into it.
Windows Registry Editor Version 5.00
    
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="E:\\VSCode\\Code.exe"
    
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"E:\\VSCode\\Code.exe\" \"%1\""
    
Windows Registry Editor Version 5.00
    
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="E:\\VSCode\\Code.exe"
    
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"E:\\VSCode\\Code.exe\" \"%V\""
    
Windows Registry Editor Version 5.00
    
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="E:\\VSCode\\Code.exe"
    
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"E:\\VSCode\\Code.exe\" \"%V\""

Before use, change the six“E:\VSCode\Code.exe”to the location of your VSCode Code.exe and change “\” to “\\” Finally,change the suffix to reg and run.
使用前请将六个“E:\VSCode\Code.exe”改为你的VSCode的Code.exe所在位置并把 “\” 改为 “\\”,最后改后缀为reg后运行即可。

Introduction

VSCode can be said to be an artifact in the front-end of various code editors, relatively small and extensible, we hope to carry it in a U disk for use in various working environments, and the official also provides the use of VSCode in Windows, Linux and MacOS three major platforms.
VSCode可以说是各种代码编辑器前端之中的神器了,相对体积小且扩展性强,我们希望将它携带在U盘中在各种工作环境中使用,官方也提供了在Windows,Linux和MacOS三大平台中使用VSCode。

More Information

Making the existing VSCode a portable version (green version):
使现有的VSCode成为便携版(绿色版)


版权声明:本文为CSDN博主「 Apollo-007」的原创文章,

遵循CC BY-NC-SA 4.0版权协议,转载请附上原文出处链接及本声明。

原文链接: https://apollo.blog.csdn.net/article/details/130248299

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Apollo-007

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值