A vscode extension to help organize and load submodules easily
-
vsce package
-
npm install
You can download it from releases.
-
submodule_helper.json
-
{ "root_folder": "./", "submodules_structure": { } }
The root folder is where the submodules will be loaded in
-
{ "root_folder": "./", "submodules_structure": { "paLibSubs": [ { "used": 1, "git": "https://github.com/paMcuLib/paMcuLib_CoreHeads.git" }, { "used": 1, "git": "https://github.com/paMcuLib/paMcuLibCore_Esp32.git" } ], "paLibSubs/paMods/display": [ { "used": 0, "rename": "SSD1306", "git": "https://github.com/pa-McuLib-parts/ssd1306_pa_CommonLib.git" } ] } }
In above "submodules_structure" , we added 3 repos.
The keys---"paLibSubs","paLibSubs/paMods/display"---represent the relative path to "root_folder" that your submodules will be in.
"used" represents if you need to load it
"git" represents your submodule repo
"rename" represents the folder name of your submodule you want to change to. This part is not necessary to write, if you don't write it, it will be load as it's own name in URI.
-
ctrl +shift+p
and typesubhelper
,then typeenter
It will automatically run and load your submodules.