Transform text structures into real folders and files with a single click
TreeForge is a VS Code extension that creates folder and file structures from text representations. It's perfect for quickly scaffolding projects, recreating structures from documentation, or setting up test environments.
- Text to Structure: Convert text representations of folder structures into actual folders and files
- Multiple Formats: Support for indentation-based formats and tree visualization characters (┣, ┃, ┗, etc.)
- Structure Preview: Preview the structure before creating it
- Simple Interface: Right-click and select from the context menu to create or preview
- Smart Detection: Automatically detect files vs folders
-
Input Your Structure:
- Enter or paste a text representation of your desired folder structure
- Select the text (optional - if not selected, the entire document will be used)
-
Create Structure:
- Right-click and select "TreeForge: Create Folder Structure"
- Or use the Command Palette (Ctrl+Shift+P) and search for "TreeForge"
- Preview the structure and confirm
- Select a target location
- Done! Your folders and files are created
-
Preview Only:
- Right-click and select "TreeForge: Preview Structure"
- See what will be created without actually creating anything
TreeForge supports multiple ways to represent folder structures:
project-root
┣ src
┃ ┣ components
┃ ┃ ┗ Button.js
┃ ┣ utils
┃ ┃ ┗ helpers.js
┃ ┗ App.js
┣ package.json
┗ README.md
project-root
├── src
│ ├── components
│ │ └── Button.js
│ ├── utils
│ │ └── helpers.js
│ └── App.js
├── package.json
└── README.md
project-root
src
components
Button.js
utils
helpers.js
App.js
package.json
README.md
Install directly from the VS Code Marketplace:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "TreeForge"
- Click Install
- Visual Studio Code version 1.60.0 or higher
This extension doesn't add any VS Code settings yet.
- Very complex folder structures with irregular indentation might not parse correctly
- File detection is based on file extensions, so files without extensions might be detected as folders
- Initial release of TreeForge
- Support for multiple structure formats
- Preview functionality
- Context menu integration
- File issues or feature requests on GitHub
- Rate and review in the VS Code Marketplace
This extension is licensed under the MIT License.
Enjoy using TreeForge! 🌲