How to open a project with VSCode using the right-click menu

1. Click the right mouse button anywhere on the desktop or folder to open VSCode

  1. Press win+Rthe key combination to run the command window, enter regeditto open the registry editor.
    insert image description here

  2. If the path is found 计算机\HKEY_CLASSES_ROOT\Directory\Background\shell, VSCode文件夹(项)if the path has not been set before, you generally need to create this folder (item) by yourself, or you can choose another alias.
    insert image description here
    insert image description here

  3. Double-click on the right 默认to fill in the numerical data 使用VSCode打开(mainly to set the name displayed in the right-click menu, the name can be customized or not set, and it will be displayed by the name of the created file (item) by default).insert image description here

  4. Click the VSCode folder (item)—right mouse button—new—string value—name it Icon, this step is mainly to set the icon before the right button displays the text, and then set the path of the software (icon).
    insert image description here

  5. Click the VSCode folder (item)—right mouse button—New—item, and name it Command.
    insert image description here

  6. Double-click the path where the default setting software is located on the right, and add it later "%v", if not, add "%1"(English double quotation marks).
    insert image description here

  7. Setup succeeded.
    insert image description here

2. Right click on the folder to open VSCode

1. Find 计算机\HKEY_CLASSES_ROOT\Directory\shelland create a new VSCode文件夹(项)
insert image description here
2. Double-click 默认to set the value data as: 使用VScode打开
insert image description here
3. Click the VSCode folder (item)—right mouse button—New—String Value—name it icon, and 设置vscode的安装路径.
insert image description here
4. Click the VSCode folder (item)—right mouse button—New—item, and name it Command.
insert image description here
5. The setting is successful.
insert image description here
Reference link: https://blog.csdn.net/weixin_47638941/article/details/120781121

Guess you like

Origin blog.csdn.net/qq_45565693/article/details/129005236