美文网首页
右键文件夹出现使用vscode打开(win10)

右键文件夹出现使用vscode打开(win10)

作者: 草珊瑚_6557 | 来源:发表于2020-03-21 21:38 被阅读0次

1、把以下代码复制到记事本,然后另存为后缀名为".reg"的文件。
2、双击执行刚刚保存的文件,会提示是否导入注册表,选择是。
这时右键文件夹会出现Open with Code选项。

Windows Registry Editor Version 5.00
    
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\Microsoft VS Code\\Code.exe"
    
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
    
Windows Registry Editor Version 5.00
    
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\Program Files\\Microsoft VS Code\\Code.exe"
    
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\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"="D:\\Program Files\\Microsoft VS Code\\Code.exe"
    
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""

相关文章

网友评论

      本文标题:右键文件夹出现使用vscode打开(win10)

      本文链接:https://www.haomeiwen.com/subject/cifpyhtx.html