Multi Folders & Files Creator
A Visual Studio Code extension that allows you to create multiple folders and files at once with an intuitive syntax using folder: file1, file2 notation.
Features
- Create multiple files and folders with a single command
- Preview mode - See exactly what will be created before confirming
- Automatically create parent directories if they don't exist
- Use file templates based on file extensions
- Customize the separator character and other settings
- Support for status reporting and error handling
How It Works
Right-click on any folder in the explorer and select "Create Multiple Folders or Files":

Enter the folder and file structure using the new syntax:

All files and folders are created instantly:

Usage
- Right-click on a folder in the Explorer panel
- Select "Create Multiple Folders or Files" from the context menu
- Use the new intuitive syntax:
folder: file1, file2 - Creates a folder with multiple files inside
standalone.js - Creates a standalone file
- Combine with semicolons:
src: index.ts, api: get.ts, post.ts; README.md
Examples
Create organized folder structure:
src: index.ts, api: get.ts, post.ts; README.md
Creates:
src/
├── index.ts
└── api/
├── get.ts
└── post.ts
README.md
Create multiple folders with files:
components: Button.js, Header.js; styles: main.css, theme.css; utils/
Creates:
components/
├── Button.js
└── Header.js
styles/
├── main.css
└── theme.css
utils/
Mix folders and standalone files:
models: User.js, Product.js; controllers: auth.js; config.json
Creates:
models/
├── User.js
└── Product.js
controllers/
└── auth.js
config.json
Extension Settings
This extension contributes the following settings:
multiFoldersFilesCreator.separator: Character used to separate multiple file/folder paths (default: ;)
multiFoldersFilesCreator.defaultTemplate: Default content for new files without a specific template (default: empty)
multiFoldersFilesCreator.confirmLargeOperations: Show a confirmation dialog when creating many files/folders at once (default: true)
multiFoldersFilesCreator.largeOperationThreshold: Number of files/folders that triggers the confirmation dialog (default: 5)
multiFoldersFilesCreator.autoOpenFiles: Automatically open created files in the editor (default: false)
multiFoldersFilesCreator.useFileTemplates: Use predefined templates for file types, disable to create empty files (default: true)
multiFoldersFilesCreator.showPreview: Show preview of files/folders before creating them (default: true)
Supported File Templates
The extension automatically adds templates for these file types:
.ts - TypeScript files
.js - JavaScript files
.html - HTML files
.css - CSS files
.json - JSON files
.md - Markdown files
.py - Python files
.java - Java files
.c - C files
.cpp - C++ files
Release Notes
0.1.0
- NEW: Preview Mode - See exactly what will be created before confirming
- FIX: Nested folder parsing - Properly handles syntax like
src: index.ts, api: get.ts, post.ts
- FIX: Path normalization - Removes double slashes in folder paths
- FIX: Progress tracking - Accurate progress counter during creation
- IMPROVE: Java templates - Uses actual filename for class names
- New configuration option:
multiFoldersFilesCreator.showPreview
0.0.1
- Initial release
- Basic functionality to create multiple files and folders
- File templates for common file types
- Configuration options for customization
- Status reporting and error handling
Upcoming Features
- Custom templates for different file types
- Ability to save and reuse common file structures
- Command palette support
- Support for workspace-specific templates
Contributing
Feel free to open issues or PRs on the GitHub repository.
Enjoy!