Add (Open With VSCode) Right-click shortcuts to portable vscode
增加(Open With VSCode)到鼠标右键菜单打开 VSCode
The following three functions are implemented:
- Right-click anywhere on the desktop or folder to open VSCode
- Right-click to open a folder with VSCode
- Right-click to open a specific file with VSCode
共实现以下三个功能:
1.在桌面或文件夹内任意位置点击鼠标右键打开VSCode
2.点击鼠标右键用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