Skip to content

AndyFerns/vscode-dir-builder

Repository files navigation

Create Directory Structure

Create Directory Structure is a Visual Studio Code extension that allows you to generate complex directory and file structures by simply pasting a directory tree in text format. It's perfect for scaffolding projects quickly and visually. Its also useful for DIRECTLY copy-pasting directory structures provided by LLMs and creating the files and folders automatically, saving precious time!

Preview


Features

  • 🖊️ Multiline Input Webview: Paste your directory tree (indented or ASCII-style like ├──, └──) into a themed, multiline input view.
  • 👀 Preview Before Creation: A confirmation screen shows the parsed structure using 📁 and 📄 icons before generating anything on disk.
  • 📂 Select Destination Folder: Easily choose the folder where the structure should be created.
  • ✍️ Smart Parsing: Supports trees with indentation, Unicode box-drawing characters, and trailing slashes or colons to indicate folders.
  • ⚠️ Conflict Resolution: Prompts you to overwrite, skip, or cancel if a file already exists.
  • Undo Option: Fully reverses all file/folder creations if needed — great for quick experimentation.
  • 🧼 Clean Formatting: Automatically normalizes inconsistent input symbols or spacing.

Requirements

  • Visual Studio Code v1.70.0 or later.
  • No external dependencies. Everything runs locally and offline.

Extension Settings

This extension currently does not contribute any custom settings.


Known Issues

  • May fail silently on deeply nested trees if input formatting is inconsistent.
  • Folder creation might be blocked if the root folder is already open and locked in another process (e.g., VSCode itself).
  • Undo might not work perfectly on symbolic links or read-only files.

Following extension guidelines

This extension was built following VSCode's official guidelines:


For more information


Enjoy seamlessly building folder structures!

About

Leverage directory trees provided by LLMs and convert them into actual files and folders in memory

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors