vscode安装后,右键选择文件夹没有vscode打开选项,该怎么解决
我现在的电脑安装的是win11,就遇到一个奇怪的问题。vscode安装也没问题,但是右键看不到vscode的选项。

操作步骤如下:
1,操作前先打开windows安全中心,打开病毒与防护

2,打开病毒和威胁防护设置的 管理设置

3,防篡改设置要关闭

注意:下面注册表运行完毕后,再开启
4,cmd--where code 确定vscode的安装位置
5,创建一个txt文档,把下面的文件复制进去
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Open with Code]
@="Open with Code"
"Icon"="D:\vscode_soft\Microsoft VS Code\Code.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\Open with Code\command]
@=""D:\vscode_soft\Microsoft VS Code\Code.exe" "%1""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Code]
@="Open with Code"
"Icon"="D:\vscode_soft\Microsoft VS Code\Code.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Code\command]
@=""D:\vscode_soft\Microsoft VS Code\Code.exe" "%V""
[HKEY_CLASSES_ROOT*\shell\Open with Code]
@="Open with Code"
"Icon"="D:\vscode_soft\Microsoft VS Code\Code.exe,0"
[HKEY_CLASSES_ROOT*\shell\Open with Code\command]
@=""D:\vscode_soft\Microsoft VS Code\Code.exe" "%1""
6. 我的文件路径在D盘的vscode文件夹,把这个文件更名为 vscode右键.reg 双击 运行即可,你的文件路径,以你的为准,最好和我的一样
浙公网安备 33010602011771号