How to join VSCode right function menu

We often use for research and development, testing, product and design tools, we hope to quickly find and use directly, basically consists of two general ways:

1, desktop shortcut

2, the computer's start menu

More than two ways, when the software tools installed, you can achieve, even we can also put a shortcut to the taskbar at the bottom of the display on the basis of two or more, but if too much is not good-looking, but also in individual cases not easy

In doing research and development projects recently, used VSCode, we do not want, and then struggling to find specific items in the tool path, of course, if the project imputation to a certain place, such as VSCode_worksapce, the best, there are similar idea_workspace, python_workspace Wait

Today introduced are, how to VSCode added to the right of the menu, whether it is on the desktop, or a specific folder, you can use directly right-click to open, this is a class operation, but also for the sublime Text 3, idea other similar method, the specific operation is as follows:

1, the establishment of a add_shortcut.reg file on your desktop, note that the file extension is .reg, the best use NodePad ++ editor, and then save as, change extension, be careful not to save .reg.text

2, in add_shortcut.reg file, add the following configuration information:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Programs\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Programs\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Programs\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""

As you can see, the above configuration is for the different VSCode usage scenarios, settings, and information which the @ = "Open with Code" that is configured, right after we have seen, as shown in my notebook displayed

Of course, it all can be repaired, mainly easy to understand, do not mess up on the line

The "Icon" = = @ or part of the configuration is to be followed, the tool or software executable files, .exe, here we can see, is my path

D:\\Programs\\Microsoft VS Code\\Code.exe

You can replace the copy for their own path, but the rest can remain unchanged

3, modify, save, and then double-click execution

4. Right-click to verify whether there is

Guess you like

Origin blog.csdn.net/weixin_37896608/article/details/91880097