Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add a vscode shortcut on the right button

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to add vscode shortcut in the right button, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

associated files

1, Win+R open the run, enter regedit, open the registry, find HKEY_CLASSES_ROOT\*\shell branch, if there is no shell branch, then right-click under *, select "New-item", establish shell branch.

2. Create a new "VisualCode" item under the shell, and enter "open with visual code" in the "Default" key field of the right window, which is the display value of VisualCode startup program when clicking the right mouse button. The name and key value of the item can be arbitrary, and the meaning is clear. The key values will be displayed in the right-click menu.

3. Create a new Command item under "VisualCode" and enter the path where Notepad program is located in the "Default" key field of the right window. Mine is: "D:\Program Files (x86)\Microsoft VS Code\code.exe" "%1". where %1 indicates the file parameters to open. That is, Visual Code starts the program. If you can't find it, look for Visual Studio Code at the beginning, and then right-click to open the file location.

4. Close the registry to take effect.

related folder

The above method can display "open with visual code" in the menu bar when right-clicking the file, but this option cannot be displayed when right-clicking the folder, so the following operations should be performed:

Open the registry, find HKEY_CLASSES_ROOT\Directory\shell, and add it as described in 2 and 3 above.

Add Icon

Create a new extensible string value on the original item, named Icon, and put D:\Program Files (x86)\Microsoft VS Code\code.exe in it like a key-value pair.

delete

When you update the program or uninstall Visual code, you can directly find the corresponding position in the registry to modify or delete it.

By the way, 360 Security Guard's right-click binding deletion: find "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers"; if it is only valid for folders, store it in

"HKEY_CLASSES_ROOT\Directory\shell""HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers""HKEY_CLASSES_ROOT\Folder\shell""HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers"

Then delete them after you find them.

Thank you for reading this article carefully. I hope that the article "How to add vscode shortcut in the right button" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report