zoukankan      html  css  js  c++  java
  • 鼠标右键vsCode打开

    一直苦恼vscode怎么没有右键打开文件夹的功能,原来是因为当初安装时没有勾选这个配置项。
    所幸可以通过手动增加注册表来实现。将下面的内容保存为一个“.reg”为后缀的文件后双击运行。

    Windows Registry Editor Version 5.00 
    
    ; This will make it appear when you right click ON any file
    ; The "Icon" line can be removed if you don't want the icon to appear 
    [HKEY_CLASSES_ROOT*shellOpen with VS Code] 
    @="Edit with VS Code" 
    "Icon"="C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe,0" 
    
    [HKEY_CLASSES_ROOT*shellOpen with VS Codecommand] 
    @=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.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 with VSCode" 
    "Icon"=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe",0" 
    
    [HKEY_CLASSES_ROOTDirectoryshellvscodecommand] 
    @=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.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 with VSCode" 
    "Icon"=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe",0" 
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand] 
    @=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%V""
    C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe,0" 
    
    [HKEY_CLASSES_ROOT*shellOpen with VS Codecommand] 
    @=""C:\Users\bobin.yang\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%1""
  • 相关阅读:
    [King.yue]EXT.Grid行双击事件
    [King.yue]关于代码调试时的缓存问题的一个解决办法
    [Buffalo]ASP.NET MVC路由映射
    [Tommas] 如何创建自动化功能测试的基本原则
    [Tommas] Web测试中,各类web控件测试点总结
    [Tommas] ERP系统测试用例设计1(转)
    [King.yue]VS2012 无法启动IIS Express Web服务器的解决方案
    原创 html动态表格
    原创 SqlParameter 事务 批量数据插入
    jquery readio checked
  • 原文地址:https://www.cnblogs.com/springsnow/p/13595710.html
Copyright © 2011-2022 走看看