VS code 编辑器(文件或者文件夹的右键打开菜单的显示)

孙广东  2016.7.24

http://blog.csdn.net/u010019717

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

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

 

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

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

vsCodeOpenFolder.reg   文件

Windows Registry Editor Version 5.00 
 
; Open files 
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] 
@="Edit with VS Code" 
"Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0" 
 
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] 
@="\"C:\\Program Files (x86)\\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_ROOT\Directory\shell\vscode] 
@="Open Folder as VS Code Project" 
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0" 
 
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command] 
@="\"C:\\Program Files (x86)\\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_ROOT\Directory\Background\shell\vscode] 
@="Open Folder as VS Code Project" 
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0" 
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command] 
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\"" 

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

 

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

然后就可以使用了。

 

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

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Unity5]
@=""
"Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe"
"MUIVerb"="Open as Unity Project"

[HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command]
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\""


你可能感兴趣的:(VS,&,VS,Code)