This is a heavily improved fork of the original folder structure generator extension. It lets you quickly scaffold folders and files based on customizable templates, with dynamic variable substitution.
The core idea: templates can now patch existing files instead of overwriting them. I introduced a new syntax to allow inserting content after or before specific substrings inside a file. This enables precise, safe augmentation of existing logic (like Redux reducers or route declarations).
You can also use parts of the current absolute path as template variables. To do that, specify <Path0> - <PathN> up to depending on the folder depth. For example, if the path is "P:/projects/contributing/vscode-folder-templates", then <Path0> = P, <Path1> = projects, and so on. These can be transformed with casing filters too.
Insert new lines into existing files using substring-based search instead of full replacement
Define whether the inserted content should go before or after the matched substring inside the file
Use parts of the absolute path as dynamic values via , , ... tokens
Create and manage multiple project scaffolding templates for various scenarios
Actively used by teammates in a professional environment for real-world work setups
If you use Redux, feature folders, or any kind of repetitive setup — this extension can save you hours every week.