Git相关
当把一些项目拷贝到自己的Git仓库中时,需要记得清楚原先项目的.git目录的文件。否则里面如果夹带着仓库信息的话会出现各种问题。
其中一个就是这个Submodule is dirty的错误。
有时候如果找不到程序集丢失了。可以通过当前程序集的文件找到他引用的guid文件,然后找对应的guid值的程序集文件就可以了。
添加一个reg注册表文件,保存成.reg后缀文件,内容如下。相关路径变更为自己电脑上的vscode执行文件路径
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\Program Files\Microsoft VS Code\Code.exe,0"
[HKEY_CLASSES_ROOT*\shell\Open with VS Code\command]
@=""C:\Program Files\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\Microsoft VS Code\Code.exe",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@=""C:\Program Files\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\Microsoft VS Code\Code.exe",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@=""C:\Program Files\Microsoft VS Code\Code.exe" "%V""
然后运行这个注册表文件。
之后就可以通过右键点击一个目录,出现VSCode的选项打开了。