Whenever I open a Git project that contains submodules, VSCode additionally opens all submodules in the source control view. This clutters the source control view, especially for projects with 10+ submodules.
How do I make VSCode only open the current "root" Git project?
Here, for example, accel... is the "root" project and unive... and matpl... are submodules.

I can go through all the submodules and close them manually, but this is pretty tedious.
Thanks
You can use the git.detectSubmodules setting like this:
{
"git.detectSubmodules": false
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With