Folder Structure V2

fast folder structure icon

An extended version of the original folder scaffolding extension. Now with smart patching, dynamic path tokens, and absolute control over your project structure.

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.

Fast Folder Structure V2 Features

  • Patch instead of overwrite

    Insert new lines into existing files using substring-based search instead of full replacement

  • Before/After substring syntax

    Define whether the inserted content should go before or after the matched substring inside the file

  • Absolute path variable support

    Use parts of the absolute path as dynamic values via , , ... tokens

  • Multi-template system

    Create and manage multiple project scaffolding templates for various scenarios

  • Used in production

    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.

View on github