vs code中怎么查看包的源码(VScode编辑器)

使用 VSCODE的过程中非常好奇, 为什么没有 在文件或者文件夹上右键可以使用 VSCODE打开的快捷键。

自己傻逼了, 安装的时候粗心了, 因为如上图默认是 不选中的, 所以就看不到了。

解决的方式 是 可以自己重新安装, 然后选中选项。

或者使用下面的cmd 修改注册表(不熟悉的不推荐啊)

vsCodeOpenFolder.reg 文件

  1. Windows Registry Editor Version 5.00
  2. ; Open files
  3. [HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
  4. @="Edit with VS Code"
  5. "Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"
  6. [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\Command]
  7. @="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""
  8. ; This will make it appear when you right click ON a folder
  9. ; The "Icon" line can be removed if you don't want the icon to appear
  10. [HKEY_CLASSES_ROOT\Directory\shell\vscode]
  11. @="Open Folder as VS Code Project"
  12. "Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
  13. [HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
  14. @="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""
  15. ; This will make it appear when you right click INSIDE a folder
  16. ; The "Icon" line can be removed if you don't want the icon to appear
  17. [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
  18. @="Open Folder as VS Code Project"
  19. "Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
  20. [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
  21. @="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\""

注意 VSCODE的安装路径这里使用的是默认的 C:\\Program Files (x86)\\Microsoft VS Code\\ 你要换成你安装的路径才对。

然后双击这个文件就行了, 如果有问题就以管理员的身份运行。

然后就可以使用了。

之前做过类似的内容, 就是为Unity引擎扩展右键菜单。

  1. Windows Registry Editor Version 5.00
  2. [HKEY_CLASSES_ROOT\Folder\shell\Unity5]
  3. @=""
  4. "Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe"
  5. "MUIVerb"="Open as Unity Project"
  6. [HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command]
  7. @="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\""

vs code中怎么查看包的源码(VScode编辑器)(1)

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页