VSCode添加到右键菜单

Daotin 于 2019-12-07 发布 编辑

问题描述

Windows上面安装Visual Studio Code编辑器后,常常会因为安装的时候忘记勾选等原因,没有将"Open with Code(右键快捷方式)"添加到鼠标右键菜单里,使用起来多有不便,所以需要我们手动将VSCode添加至鼠标右键菜单之中.

解决办法

[HKEY_CLASSES_ROOT*\shell\VSCode] @=”Open with Code” “Icon”=”C:\Program Files\Microsoft VS Code\Code.exe”

[HKEY_CLASSES_ROOT*\shell\VSCode\command] @=”"C:\Program Files\Microsoft VS Code\Code.exe" "%1"”

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\VSCode] @=”Open with Code” “Icon”=”C:\Program Files\Microsoft VS Code\Code.exe”

[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command] @=”"C:\Program Files\Microsoft VS Code\Code.exe" "%V"”

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode] @=”Open with Code” “Icon”=”C:\Program Files\Microsoft VS Code\Code.exe”

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command] @=”"C:\Program Files\Microsoft VS Code\Code.exe" "%V"” ```