右击存放项目的文件夹出现 open with Visual Studio Code 的打开方式

2022-12-07,,,,

最终效果

步骤1:

找到 Visual Studio Code 的安装位置 (右击桌面Visual Studio Code 图标——》属性——》打开文件夹所在位置)

新建一个可以编辑的 content.txt  文件

复制以下代码  (标黄部分改成自己的安装地址)

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\vscode\\Microsoft VS Code\\Code.exe\" \"%1\""
    
Windows Registry Editor Version 5.00

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

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

Windows Registry Editor Version 5.00

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

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

步骤2

将content.txt  改为 content.reg

右击运行显示如图即成功

右击存放项目的文件夹出现 open with Visual Studio Code 的打开方式的相关教程结束。

《右击存放项目的文件夹出现 open with Visual Studio Code 的打开方式.doc》

下载本文的Word格式文档,以方便收藏与打印。