美文网首页
将vscode添加到右键菜单

将vscode添加到右键菜单

作者: 扶不起的蝌蚪 | 来源:发表于2022-02-08 22:16 被阅读0次

    新建一个reg类型的文件,将文件以记事本或者IDE打开
    在里面键入

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode]
    @="使用 Visual Studio Code 打开"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\""
        
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode]
    @="使用 Visual Studio Code 打开"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
    
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
    @="使用 Visual Studio Code 打开"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
    

    将上面的"D:\\Microsoft VS Code\\Code.exe替换成你的code.exe所在的路径,保存后运行reg文件

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode]
    @="open with Visual Studio Code"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\*\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%1\""
        
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode]
    @="open with Visual Studio Code"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
    
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
    @="open with Visual Studio Code"
    "Icon"="D:\\Microsoft VS Code\\Code.exe"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
    @="\"D:\\Microsoft VS Code\\Code.exe\" \"%V\""
    

    相关文章

      网友评论

          本文标题:将vscode添加到右键菜单

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