1. 新建文件,命名:Open File With VS code.reg
  2. 右键用记事本打开,文件内容:
  3. 注意:这里VS Code的路径要用你自己电脑安装的路径
    Windows Registry Editor Version 5.00
    
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode]
    @="Open with VSCode"
    "Icon"="d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode\command]
    @="\"d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""
        
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode]
    @="Open with VSCode"
    "Icon"="d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
    @="\"d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
    
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
    @="Open with VSCode"
    "Icon"="d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
    @="\"d:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""

     

posted on 2022-04-10 16:51  啊修  阅读(152)  评论(0编辑  收藏  举报