已解决Vscode/Cursor中源代码管理不显示代码改动
·
由于我的git仓库里面有多个子仓库,因此用Vscode/Cusor打开时,发现源代码管理只显示最外层仓库的comiit改动,不显示子仓库的改动了,解决办法如下:
1、找到你的git仓库中的settings.json,一般路径在./.vscode/下;
2、在文件中末尾添加这几行:
"git.autoRepositoryDetection": "subFolders",
"git.repositoryScanMaxDepth": 3,
"git.detectSubmodules": true,
"git.detectSubmodulesLimit": 50
3、Ctrl + Shift + P,执行 >Developer: Reload Window重启窗口,重启后编辑器会自动搜索工作区中的git仓库,并显示在源代码管理中
更多推荐


所有评论(0)