zoukankan      html  css  js  c++  java
  • Windows右键添加VSCode启动

    windows中,vscode安装的时候忘记勾选右键启动,这时,可以通过修改注册表项来实现。
    将修改文件存为一份注册表文件,命名为add_vscode_2_right_click.reg,内容如下:

    Windows Registry Editor Version 5.00
    ; Open files
    [HKEY_CLASSES_ROOT*shellOpen with VSCode]
    @="Open with VSCode"
    "Icon"="C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe,0"
    [HKEY_CLASSES_ROOT*shellOpen with VSCodecommand]
    @=""C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" "%1""
    ; This will make it appear when you right click ON a folder
    ; The "Icon" line can be removed if you don't want the icon to appear
    [HKEY_CLASSES_ROOTDirectoryshellvscode]
    @="Open Folder as VSCode Project"
    "Icon"=""C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe",0"
    [HKEY_CLASSES_ROOTDirectoryshellvscodecommand]
    @=""C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" "%1""
    ; This will make it appear when you right click INSIDE a folder
    ; The "Icon" line can be removed if you don't want the icon to appear
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscode]
    @="Open Folder as VSCode Project"
    "Icon"=""C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe",0"
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
    @=""C:\Users\zyc12\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" "%V""
    

    注意,上述文件中需要把vscode的安装路径替换为自己的实际路径。然后双击运行即可。

  • 相关阅读:
    学习笔记65—学位和学历区别
    学习笔记64—兴趣阅读之文学
    学习笔记63—兴趣阅读之法律
    学习笔记62—兴趣阅读之管理学
    学习笔记61—兴趣阅读之经济学
    学习笔记60—SPSS
    学习笔记59—收藏这7个在线配色神器,再也不愁配色灵感了
    学习笔记58—3D杯子设计
    网络处理2-异步POST请求和同步请求
    网络处理1-异步GET请求
  • 原文地址:https://www.cnblogs.com/yczha/p/13162161.html
Copyright © 2011-2022 走看看