Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio Code from Opening Submodules in Source Control View

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. enter image description here

I can go through all the submodules and close them manually, but this is pretty tedious.

Thanks

like image 783
Fabian Avatar asked Nov 21 '25 13:11

Fabian


1 Answers

You can use the git.detectSubmodules setting like this:

{
  "git.detectSubmodules": false
}
like image 107
Paul Razvan Berg Avatar answered Nov 25 '25 00:11

Paul Razvan Berg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!